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

pub struct PdfDocument {
    pub fonts: FontList,
    pub document_id: String,
    pub metadata: PdfMetadata,
    pub bookmarks: HashMap<usize, String>,
    // 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

bookmarks: HashMap<usize, String>

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

Implementations

impl PdfDocument[src]

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>, 
[src]

Creates a new PDF document

pub fn empty<S: Into<String>>(document_title: S) -> PdfDocumentReference[src]

Trait Implementations

impl Clone for PdfDocument[src]

impl Debug for PdfDocument[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.