pub struct Catalog {
pub pages_ref: ObjectId,
pub page_count: usize,
/* private fields */
}Fields§
§pages_ref: ObjectId§page_count: usizeImplementations§
Source§impl Catalog
impl Catalog
pub fn from_trailer(file: &PdfFile) -> Result<Self>
Sourcepub fn page_index_of(&self, id: ObjectId) -> Option<usize>
pub fn page_index_of(&self, id: ObjectId) -> Option<usize>
The 0-based page index of a page object, or None when the reference is
not a page in this document’s page tree. Used to turn a destination’s
target page reference into a page number.
pub fn get_page(&self, file: &PdfFile, index: usize) -> Result<PdfPage>
Auto Trait Implementations§
impl Freeze for Catalog
impl RefUnwindSafe for Catalog
impl Send for Catalog
impl Sync for Catalog
impl Unpin for Catalog
impl UnsafeUnpin for Catalog
impl UnwindSafe for Catalog
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