pub struct PDDocumentCatalog {
pub catalog_id: ObjectId,
pub pages_id: ObjectId,
}Expand description
The Document Catalog dictionary (/Root).
Fields§
§catalog_id: ObjectId§pages_id: ObjectIdImplementations§
Source§impl PDDocumentCatalog
impl PDDocumentCatalog
Sourcepub fn new(cos_doc: &mut COSDocument) -> Self
pub fn new(cos_doc: &mut COSDocument) -> Self
Creates a new catalog and page tree root in the given COSDocument.
Sourcepub fn from_doc(cos_doc: &COSDocument) -> PdfResult<Self>
pub fn from_doc(cos_doc: &COSDocument) -> PdfResult<Self>
Loads the catalog and resolves the pages root from an existing document.
Sourcepub fn collect_page_ids(&self, cos_doc: &COSDocument) -> Vec<ObjectId>
pub fn collect_page_ids(&self, cos_doc: &COSDocument) -> Vec<ObjectId>
Traverses the page tree and collects all page object IDs in sequence.
Trait Implementations§
Source§impl Clone for PDDocumentCatalog
impl Clone for PDDocumentCatalog
Source§fn clone(&self) -> PDDocumentCatalog
fn clone(&self) -> PDDocumentCatalog
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PDDocumentCatalog
impl RefUnwindSafe for PDDocumentCatalog
impl Send for PDDocumentCatalog
impl Sync for PDDocumentCatalog
impl Unpin for PDDocumentCatalog
impl UnsafeUnpin for PDDocumentCatalog
impl UnwindSafe for PDDocumentCatalog
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