Struct printpdf::types::pdf_document::PdfDocument [−][src]
pub struct PdfDocument { pub fonts: FontList, pub document_id: String, pub metadata: PdfMetadata, // some fields omitted }
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
Methods
impl PdfDocument
[src]
impl PdfDocument
pub fn new<S>(
document_title: S,
initial_page_width: Mm,
initial_page_height: Mm,
initial_layer_name: S
) -> (PdfDocumentReference, PdfPageIndex, PdfLayerIndex) where
S: Into<String>,
[src]
pub fn new<S>(
document_title: S,
initial_page_width: Mm,
initial_page_height: Mm,
initial_layer_name: S
) -> (PdfDocumentReference, PdfPageIndex, PdfLayerIndex) where
S: Into<String>,
Creates a new PDF document
Trait Implementations
impl Debug for PdfDocument
[src]
impl Debug for PdfDocument
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for PdfDocument
[src]
impl Clone for PdfDocument
fn clone(&self) -> PdfDocument
[src]
fn clone(&self) -> PdfDocument
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for PdfDocument
impl Send for PdfDocument
impl Sync for PdfDocument
impl Sync for PdfDocument