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

pub struct PdfPageReference {
    pub document: Weak<RefCell<PdfDocument>>,
    pub page: PdfPageIndex,
}

A "reference" to the current page, allows for inner mutability but only inside this library

Fields

A weak reference to the document, for inner mutability

The index of the page this layer is on

Methods

impl PdfPageReference
[src]

[src]

Adds a page and returns the index of the currently added page

[src]

Validates that a layer is present and returns a reference to it