pub enum PdfPageAnnotationType {
Show 29 variants
Unknown,
Text,
Link,
FreeText,
Line,
Square,
Circle,
Polygon,
Polyline,
Highlight,
Underline,
Squiggly,
Strikeout,
Stamp,
Caret,
Ink,
Popup,
FileAttachment,
Sound,
Movie,
Widget,
Screen,
PrinterMark,
TrapNet,
Watermark,
ThreeD,
RichMedia,
XfaWidget,
Redact,
}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 files, embedded 3D animations, or embedded file attachments generally.
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::Square
- PdfPageAnnotationType::Squiggly
- PdfPageAnnotationType::Stamp
- PdfPageAnnotationType::Strikeout
- PdfPageAnnotationType::Text
- PdfPageAnnotationType::Underline
Variants
Unknown
Text
Link
FreeText
Line
Square
Circle
Polygon
Polyline
Highlight
Underline
Squiggly
Strikeout
Stamp
Caret
Ink
Popup
FileAttachment
Sound
Movie
Widget
Screen
PrinterMark
TrapNet
Watermark
ThreeD
RichMedia
XfaWidget
Redact
Trait Implementations
sourceimpl Clone for PdfPageAnnotationType
impl Clone for PdfPageAnnotationType
sourcefn clone(&self) -> PdfPageAnnotationType
fn clone(&self) -> PdfPageAnnotationType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PdfPageAnnotationType
impl Debug for PdfPageAnnotationType
sourceimpl PartialOrd<PdfPageAnnotationType> for PdfPageAnnotationType
impl PartialOrd<PdfPageAnnotationType> for PdfPageAnnotationType
sourcefn partial_cmp(&self, other: &PdfPageAnnotationType) -> Option<Ordering>
fn partial_cmp(&self, other: &PdfPageAnnotationType) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for PdfPageAnnotationType
impl StructuralPartialEq for PdfPageAnnotationType
Auto Trait Implementations
impl RefUnwindSafe for PdfPageAnnotationType
impl Send for PdfPageAnnotationType
impl Sync for PdfPageAnnotationType
impl Unpin for PdfPageAnnotationType
impl UnwindSafe for PdfPageAnnotationType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more