Struct pdfium_render::document::PdfDocument
source · [−]pub struct PdfDocument<'a> { /* private fields */ }Expand description
An entry point to all the various object collections contained in a single PDF file. These collections include:
- PdfDocument::pages(), all the PdfPages in the document
- PdfDocument::metadata(), all the PdfMetadata tags in the document
- PdfDocument::form(), the PdfForm embedded in the document, if any
Implementations
sourceimpl<'a> PdfDocument<'a>
impl<'a> PdfDocument<'a>
sourcepub fn version(&self) -> PdfDocumentVersion
pub fn version(&self) -> PdfDocumentVersion
Returns the file version of this PdfDocument.
sourcepub fn pages(&self) -> PdfPages<'_>
pub fn pages(&self) -> PdfPages<'_>
Returns the collection of PdfPages in this PdfDocument.
sourcepub fn metadata(&self) -> PdfMetadata<'_>
pub fn metadata(&self) -> PdfMetadata<'_>
Returns the collection of PdfMetadata tags in this PdfDocument.
sourcepub fn form(&self) -> Option<&PdfForm<'_>>
pub fn form(&self) -> Option<&PdfForm<'_>>
Returns a reference to the PdfForm embedded in this PdfDocument, if any.
sourcepub fn bookmarks(&self) -> PdfBookmarks<'_>
pub fn bookmarks(&self) -> PdfBookmarks<'_>
Returns the collection of PdfBookmarks in this PdfDocument.
Trait Implementations
sourceimpl<'a> Drop for PdfDocument<'a>
impl<'a> Drop for PdfDocument<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for PdfDocument<'a>
impl<'a> !Send for PdfDocument<'a>
impl<'a> !Sync for PdfDocument<'a>
impl<'a> Unpin for PdfDocument<'a>
impl<'a> !UnwindSafe for PdfDocument<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more