pub enum PdfPageAnnotationType {
Show 29 variants
Unknown = 0,
Text = 1,
Link = 2,
FreeText = 3,
Line = 4,
Square = 5,
Circle = 6,
Polygon = 7,
Polyline = 8,
Highlight = 9,
Underline = 10,
Squiggly = 11,
Strikeout = 12,
Stamp = 13,
Caret = 14,
Ink = 15,
Popup = 16,
FileAttachment = 17,
Sound = 18,
Movie = 19,
Widget = 20,
Screen = 21,
PrinterMark = 22,
TrapNet = 23,
Watermark = 24,
ThreeD = 25,
RichMedia = 26,
XfaWidget = 27,
Redacted = 28,
}Expand description
The type of a single PdfPageAnnotation, as defined in table 8.20 of the PDF Reference, version 1.7, on page 615.
Not all PDF annotation types are supported by Pdfium. For example, Pdfium does not currently support embedded sound or movie file annotations, embedded 3D animations, or annotations containing embedded file attachments.
Pdfium currently supports creating, editing, and rendering the following types of annotations:
- PdfPageAnnotationType::Circle
- PdfPageAnnotationType::FreeText
- PdfPageAnnotationType::Highlight
- PdfPageAnnotationType::Ink
- PdfPageAnnotationType::Link
- PdfPageAnnotationType::Popup
- PdfPageAnnotationType::Redacted
- PdfPageAnnotationType::Square
- PdfPageAnnotationType::Squiggly
- PdfPageAnnotationType::Stamp
- PdfPageAnnotationType::Strikeout
- PdfPageAnnotationType::Text
- PdfPageAnnotationType::Underline
- PdfPageAnnotationType::Widget
- PdfPageAnnotationType::XfaWidget
Note that a FreeText annotation is rendered directly on the page, whereas a Text annotation
floats over the page inside its own enclosed area. Adobe often uses the term “sticky note”
in reference to Text annotations to distinguish them from FreeText annotations.
Variants§
Unknown = 0
Text = 1
Link = 2
FreeText = 3
Line = 4
Square = 5
Circle = 6
Polygon = 7
Polyline = 8
Highlight = 9
Underline = 10
Squiggly = 11
Strikeout = 12
Stamp = 13
Caret = 14
Ink = 15
Popup = 16
FileAttachment = 17
Sound = 18
Movie = 19
Widget = 20
Screen = 21
PrinterMark = 22
TrapNet = 23
Watermark = 24
ThreeD = 25
RichMedia = 26
XfaWidget = 27
Redacted = 28
Trait Implementations§
Source§impl Clone for PdfPageAnnotationType
impl Clone for PdfPageAnnotationType
Source§fn clone(&self) -> PdfPageAnnotationType
fn clone(&self) -> PdfPageAnnotationType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PdfPageAnnotationType
impl Debug for PdfPageAnnotationType
Source§impl PartialEq for PdfPageAnnotationType
impl PartialEq for PdfPageAnnotationType
Source§impl PartialOrd for PdfPageAnnotationType
impl PartialOrd for PdfPageAnnotationType
impl Copy for PdfPageAnnotationType
impl StructuralPartialEq for PdfPageAnnotationType
Auto Trait Implementations§
impl Freeze for PdfPageAnnotationType
impl RefUnwindSafe for PdfPageAnnotationType
impl Send for PdfPageAnnotationType
impl Sync for PdfPageAnnotationType
impl Unpin for PdfPageAnnotationType
impl UnwindSafe for PdfPageAnnotationType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more