Struct pdfium_render::page_objects::PdfPageObjects
source · [−]pub struct PdfPageObjects<'a> { /* private fields */ }Expand description
The page objects contained within a single PdfPage.
Content in a PDF page is structured as a stream of PdfPageObject objects of different types:
text objects, image objects, path objects, and so on. Note that Pdfium does not support or
recognize all PDF page object types. For instance, Pdfium does not currently support or
recognize the External Object (“XObject”) page object type supported by Adobe Acrobat and
Foxit’s commercial PDF SDK. In these cases, Pdfium will return PdfPageObjectType::Unsupported.
Implementations
sourceimpl<'a> PdfPageObjects<'a>
impl<'a> PdfPageObjects<'a>
sourcepub fn len(&self) -> PdfPageObjectIndex
pub fn len(&self) -> PdfPageObjectIndex
Returns the total number of page objects within the containing PdfPage.
sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true if this PdfPageObjects collection is empty.
sourcepub fn as_range(&self) -> Range<PdfPageObjectIndex>
pub fn as_range(&self) -> Range<PdfPageObjectIndex>
Returns a Range from 0..(number of objects) for this PdfPageObjects collection.
sourcepub fn get(
&self,
index: PdfPageObjectIndex
) -> Result<PdfPageObject<'_>, PdfiumError>
pub fn get(
&self,
index: PdfPageObjectIndex
) -> Result<PdfPageObject<'_>, PdfiumError>
Returns a single PdfPageObject from this PdfPageObjects collection.
sourcepub fn iter(&self) -> PdfPageObjectsIterator<'_>ⓘNotable traits for PdfPageObjectsIterator<'a>impl<'a> Iterator for PdfPageObjectsIterator<'a> type Item = PdfPageObject<'a>;
pub fn iter(&self) -> PdfPageObjectsIterator<'_>ⓘNotable traits for PdfPageObjectsIterator<'a>impl<'a> Iterator for PdfPageObjectsIterator<'a> type Item = PdfPageObject<'a>;
Returns an iterator over all the page objects in this PdfPageObjects collection.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for PdfPageObjects<'a>
impl<'a> !Send for PdfPageObjects<'a>
impl<'a> !Sync for PdfPageObjects<'a>
impl<'a> Unpin for PdfPageObjects<'a>
impl<'a> !UnwindSafe for PdfPageObjects<'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