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
document: Weak<RefCell<PdfDocument>>
A weak reference to the document, for inner mutability
page: PdfPageIndex
The index of the page this layer is on
Methods
impl PdfPageReference
[src]
pub fn add_layer<S>(&self, layer_name: S) -> PdfLayerReference where
S: Into<String>,
[src]
S: Into<String>,
Adds a page and returns the index of the currently added page
pub fn get_layer(&self, layer: PdfLayerIndex) -> PdfLayerReference
[src]
Validates that a layer is present and returns a reference to it