pub enum PdfPageAnnotation<'a> {
Show 13 variants Circle(PdfPageCircleAnnotation<'a>), FreeText(PdfPageFreeTextAnnotation<'a>), Highlight(PdfPageHighlightAnnotation<'a>), Ink(PdfPageInkAnnotation<'a>), Link(PdfPageLinkAnnotation<'a>), Popup(PdfPagePopupAnnotation<'a>), Square(PdfPageSquareAnnotation<'a>), Squiggly(PdfPageSquigglyAnnotation<'a>), Stamp(PdfPageStampAnnotation<'a>), Strikeout(PdfPageStrikeoutAnnotation<'a>), Text(PdfPageTextAnnotation<'a>), Underline(PdfPageUnderlineAnnotation<'a>), Unsupported(PdfPageUnsupportedAnnotation<'a>),
}
Expand description

A single user annotation on a PdfPage.

Variants

Circle(PdfPageCircleAnnotation<'a>)

FreeText(PdfPageFreeTextAnnotation<'a>)

Highlight(PdfPageHighlightAnnotation<'a>)

Ink(PdfPageInkAnnotation<'a>)

Popup(PdfPagePopupAnnotation<'a>)

Square(PdfPageSquareAnnotation<'a>)

Squiggly(PdfPageSquigglyAnnotation<'a>)

Stamp(PdfPageStampAnnotation<'a>)

Strikeout(PdfPageStrikeoutAnnotation<'a>)

Text(PdfPageTextAnnotation<'a>)

Underline(PdfPageUnderlineAnnotation<'a>)

Unsupported(PdfPageUnsupportedAnnotation<'a>)

Common properties shared by all PdfPageAnnotation types can still be accessed for annotations not supported by Pdfium, but annotation-specific functionality will be unavailable.

Implementations

The type of this PdfPageAnnotation.

Not all PDF annotation types are supported by Pdfium. For example, Pdfium does not currently support embedded sound or movie files, embedded 3D animations, or embedded file attachments generally.

Pdfium currently supports creating, editing, and rendering the following types of annotations:

Returns true if Pdfium supports creating, editing, and rendering this type of PdfPageAnnotation.

Not all PDF annotation types are supported by Pdfium. For example, Pdfium does not currently support embedded sound or movie files, embedded 3D animations, or embedded file attachments generally.

Pdfium currently supports creating, editing, and rendering the following types of annotations:

Returns true if Pdfium does not support creating, editing, and rendering this type of PdfPageAnnotation.

Not all PDF annotation types are supported by Pdfium. For example, Pdfium does not currently support embedded sound or movie files, embedded 3D animations, or embedded file attachments generally.

Pdfium currently supports creating, editing, and rendering the following types of annotations:

Returns the underlying PdfPageCircleAnnotation for this PdfPageAnnotation, if this annotation has an annotation type of PdfPageAnnotationType::Circle.

Returns the underlying PdfPageFreeTextAnnotation for this PdfPageAnnotation, if this annotation has an annotation type of PdfPageAnnotationType::FreeText.

Returns the underlying PdfPageHighlightAnnotation for this PdfPageAnnotation, if this annotation has an annotation type of PdfPageAnnotationType::Highlight.

Returns the underlying PdfPageInkAnnotation for this PdfPageAnnotation, if this annotation has an annotation type of PdfPageAnnotationType::Ink.

Returns the underlying PdfPageLinkAnnotation for this PdfPageAnnotation, if this annotation has an annotation type of PdfPageAnnotationType::Link.

Returns the underlying PdfPagePopupAnnotation for this PdfPageAnnotation, if this annotation has an annotation type of PdfPageAnnotationType::Popup.

Returns the underlying PdfPageSquareAnnotation for this PdfPageAnnotation, if this annotation has an annotation type of PdfPageAnnotationType::Square.

Returns the underlying PdfPageSquigglyAnnotation for this PdfPageAnnotation, if this annotation has an annotation type of PdfPageAnnotationType::Squiggly.

Returns the underlying PdfPageStampAnnotation for this PdfPageAnnotation, if this annotation has an annotation type of PdfPageAnnotationType::Stamp.

Returns the underlying PdfPageStrikeoutAnnotation for this PdfPageAnnotation, if this annotation has an annotation type of PdfPageAnnotationType::Strikeout.

Returns the underlying PdfPageTextAnnotation for this PdfPageAnnotation, if this annotation has an annotation type of PdfPageAnnotationType::Text.

Returns the underlying PdfPageUnderlineAnnotation for this PdfPageAnnotation, if this annotation has an annotation type of PdfPageAnnotationType::Underline.

Trait Implementations

Closes this PdfPageAnnotation, releasing held memory.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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. Read more
Returns the bounding box of this PdfPageAnnotation.
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. Read more
Returns the name of the creator of this PdfPageAnnotation, if any.
Returns the date and time when this PdfPageAnnotation was originally created, if any.
Returns the date and time when this PdfPageAnnotation was last modified, if any.
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.