pub struct PageLabelTree { /* private fields */ }Expand description
Page label tree - manages custom page numbering for a document
Implementations§
Source§impl PageLabelTree
impl PageLabelTree
Sourcepub fn get_label(&self, page_index: u32) -> Option<String>
pub fn get_label(&self, page_index: u32) -> Option<String>
Get the page label for a specific page
Sourcepub fn get_all_labels(&self, total_pages: u32) -> Vec<String>
pub fn get_all_labels(&self, total_pages: u32) -> Vec<String>
Get all page labels for a document
Sourcepub fn to_dict(&self) -> Dictionary
pub fn to_dict(&self) -> Dictionary
Convert to PDF number tree dictionary
Sourcepub fn from_dict(dict: &Dictionary) -> Option<Self>
pub fn from_dict(dict: &Dictionary) -> Option<Self>
Create from PDF dictionary
Trait Implementations§
Source§impl Clone for PageLabelTree
impl Clone for PageLabelTree
Source§fn clone(&self) -> PageLabelTree
fn clone(&self) -> PageLabelTree
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PageLabelTree
impl Debug for PageLabelTree
Auto Trait Implementations§
impl Freeze for PageLabelTree
impl RefUnwindSafe for PageLabelTree
impl Send for PageLabelTree
impl Sync for PageLabelTree
impl Unpin for PageLabelTree
impl UnwindSafe for PageLabelTree
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more