Struct genpdf::render::Renderer[][src]

pub struct Renderer { /* fields omitted */ }
Expand description

Renders a PDF document with one or more pages.

This is a wrapper around a printpdf::PdfDocumentReference.

Implementations

Creates a new PDF document renderer with one page of the given size and the given title.

Sets the PDF conformance for the generated PDF document.

Adds a new page with the given size to the document.

Returns the number of pages in this document.

Returns a page of this document.

Returns a mutable reference to a page of this document.

Returns a mutable reference to the first page of this document.

Returns the first page of this document.

Returns the last page of this document.

Returns a mutable reference to the last page of this document.

Loads the font from the given data, adds it to the generated document and returns a reference to it.

Loads the font from the given data, adds it to the generated document and returns a reference to it.

Writes this PDF document to a writer.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.