pub trait PdfPageAnnotationCommon {
fn name(&self) -> Option<String>;
fn bounds(&self) -> Result<PdfRect, PdfiumError>;
fn contents(&self) -> Option<String>;
fn creator(&self) -> Option<String>;
fn creation_date(&self) -> Option<String>;
fn modification_date(&self) -> Option<String>;
}Expand description
Functionality common to all PdfPageAnnotation objects, regardless of their PdfPageAnnotationType.
Required Methods
sourcefn name(&self) -> Option<String>
fn name(&self) -> Option<String>
Returns the name of this PdfPageAnnotation, if any. This is a text string uniquely identifying this annotation among all the annotations attached to the containing page.
sourcefn bounds(&self) -> Result<PdfRect, PdfiumError>
fn bounds(&self) -> Result<PdfRect, PdfiumError>
Returns the bounding box of this PdfPageAnnotation.
sourcefn contents(&self) -> Option<String>
fn contents(&self) -> Option<String>
Returns the text to be displayed for this PdfPageAnnotation, or, if this type of annotation does not display text, an alternate description of the annotation’s contents in human-readable form. In either case this text is useful when extracting the document’s contents in support of accessibility to users with disabilities or for other purposes.
sourcefn creator(&self) -> Option<String>
fn creator(&self) -> Option<String>
Returns the name of the creator of this PdfPageAnnotation, if any.
sourcefn creation_date(&self) -> Option<String>
fn creation_date(&self) -> Option<String>
Returns the date and time when this PdfPageAnnotation was originally created, if any.
sourcefn modification_date(&self) -> Option<String>
fn modification_date(&self) -> Option<String>
Returns the date and time when this PdfPageAnnotation was last modified, if any.