Struct printpdf::types::pdf_document::PdfDocument[][src]

pub struct PdfDocument {
    pub fonts: FontList,
    pub document_id: String,
    pub metadata: PdfMetadata,
    pub bookmarks: HashMap<usize, String>,
    // some fields omitted
}
Expand description

PDF document

Fields

fonts: FontList

Fonts used in this document

document_id: String

Document ID. Must be changed if the document is loaded / parsed from a file

metadata: PdfMetadata

Metadata for this document

bookmarks: HashMap<usize, String>

The bookmarks in the document. A HashMap<Page Number, Bookmark Name>

Implementations

Creates a new PDF document

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.