Skip to main content

balanced_markdown

Function balanced_markdown 

Source
pub fn balanced_markdown(
    doc: &PdfDocument,
    config: &RuntimeConfig,
    opts: &BalancedOptions,
) -> Result<String>
Expand description

The document as markdown through the balanced tier: layout_boxes per page, each page through balanced_page_markdown.

Pages join with a blank line; empty pages contribute nothing. Needs the layout model (see crate::layout); without it the error is the shared layer’s MODEL_NOT_AVAILABLE.