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§
source§impl Clone for PdfPageAnnotationType
impl Clone for PdfPageAnnotationType
source§fn clone(&self) -> PdfPageAnnotationType
fn clone(&self) -> PdfPageAnnotationType
Returns a copy 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<PdfPageAnnotationType> for PdfPageAnnotationType
impl PartialEq<PdfPageAnnotationType> for PdfPageAnnotationType
source§fn eq(&self, other: &PdfPageAnnotationType) -> bool
fn eq(&self, other: &PdfPageAnnotationType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<PdfPageAnnotationType> for PdfPageAnnotationType
impl PartialOrd<PdfPageAnnotationType> for PdfPageAnnotationType
source§fn partial_cmp(&self, other: &PdfPageAnnotationType) -> Option<Ordering>
fn partial_cmp(&self, other: &PdfPageAnnotationType) -> Option<Ordering>
1.0.0 · source§fn 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