Struct printpdf::types::pdf_page::PdfPage [] [src]

pub struct PdfPage {
    pub width: Pt,
    pub height: Pt,
    pub layers: Vec<PdfLayer>,
    // some fields omitted
}

PDF page

Fields

page width in point

page height in point

Page layers

Methods

impl PdfPage
[src]

[src]

Create a new page, notice that width / height are in millimeter. Page must contain at least one layer

[src]

Change the graphics state. Before this operation is done, you should save the graphics state using the save_graphics_state() function. This will change the current graphics state until the end of the page or until the page is reset to the previous state. Returns the old graphics state, in case it was overwritten, as well as a reference to the currently active graphics state

[src]

STUB: Adds a pattern to the pages resources

[src]

STUB: Adds an XObject to the pages resources. NOTE: Watch out for scaling. Your XObject might be invisible or only 1pt x 1pt big

Trait Implementations

impl Debug for PdfPage
[src]

[src]

Formats the value using the given formatter.

impl Clone for PdfPage
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more