pub struct PdfPageAnnotations<'a> { /* private fields */ }Expand description
The annotations that have been added to a single PdfPage.
Implementations§
source§impl<'a> PdfPageAnnotations<'a>
impl<'a> PdfPageAnnotations<'a>
sourcepub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
pub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
Returns the PdfiumLibraryBindings used by this PdfPageAnnotations collection.
sourcepub fn len(&self) -> PdfPageAnnotationIndex
pub fn len(&self) -> PdfPageAnnotationIndex
Returns the total number of annotations that have been added to the containing PdfPage.
sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true if this PdfPageAnnotations collection is empty.
sourcepub fn as_range(&self) -> Range<PdfPageAnnotationIndex>
pub fn as_range(&self) -> Range<PdfPageAnnotationIndex>
Returns a Range from 0..(number of annotations) for this PdfPageAnnotations collection.
sourcepub fn get(
&self,
index: PdfPageAnnotationIndex
) -> Result<PdfPageAnnotation<'_>, PdfiumError>
pub fn get( &self, index: PdfPageAnnotationIndex ) -> Result<PdfPageAnnotation<'_>, PdfiumError>
Returns a single PdfPageAnnotation from this PdfPageAnnotations collection.
sourcepub fn iter(&self) -> PdfPageAnnotationsIterator<'_> ⓘ
pub fn iter(&self) -> PdfPageAnnotationsIterator<'_> ⓘ
Returns an iterator over all the annotations in this PdfPageAnnotations collection.