Skip to main content

write_padded

Function write_padded 

Source
pub fn write_padded(
    output: &LayoutOutput,
    registry: &FontRegistry,
    assets: &Assets,
    metadata: &Metadata,
    pad: Option<PadTo>,
) -> Result<Vec<u8>, PdfError>
Expand description

The same, with blank pages after the last page until the book has the count pad names. page_count returns that count.

The blank pages are in the PDF only. The writer reads the display structure and does not change it, so nothing is laid out again.