Skip to main content

render_pdf_multi_with

Function render_pdf_multi_with 

Source
pub fn render_pdf_multi_with(
    scenes: &[Scene],
    fonts: &dyn FontProvider,
    assets: &dyn AssetProvider,
    options: PdfOptions,
) -> Vec<u8> 
Expand description

Like render_pdf_multi but with explicit PdfOptions.

Allocation order: catalog=1, page_tree=2, then a shared font block (REFS_PER_FONT ids per embedded font), then per-page (page dict, content stream, link-annotation dicts, then resource objects). A document with no selectable text embeds no fonts and has no links, so the font block is empty and the id stream + bytes are identical to the historical output (the additive invariant).