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
pub fn new<S1, S2>(
document_title: S1,
initial_page_width: Mm,
initial_page_height: Mm,
initial_layer_name: S2
) -> (PdfDocumentReference, PdfPageIndex, PdfLayerIndex) where
S1: Into<String>,
S2: Into<String>,
pub fn new<S1, S2>(
document_title: S1,
initial_page_width: Mm,
initial_page_height: Mm,
initial_layer_name: S2
) -> (PdfDocumentReference, PdfPageIndex, PdfLayerIndex) where
S1: Into<String>,
S2: Into<String>,
Creates a new PDF document
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for PdfDocument
impl !Send for PdfDocument
impl !Sync for PdfDocument
impl Unpin for PdfDocument
impl !UnwindSafe for PdfDocument
Blanket Implementations
Mutably borrows from an owned value. Read more