pub enum AnnotationSubtype {
Show 28 variants
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,
Redact,
RichMedia,
Unknown,
}Expand description
Annotation subtype per PDF spec Table 169.
Variants§
Text
Text annotation (sticky note) - Section 12.5.6.4
Link
Link annotation - Section 12.5.6.5
FreeText
Free text annotation - Section 12.5.6.6
Line
Line annotation - Section 12.5.6.7
Square
Square annotation - Section 12.5.6.8
Circle
Circle annotation - Section 12.5.6.8
Polygon
Polygon annotation - Section 12.5.6.9
PolyLine
Polyline annotation - Section 12.5.6.9
Highlight
Highlight annotation - Section 12.5.6.10
Underline
Underline annotation - Section 12.5.6.10
Squiggly
Squiggly underline annotation - Section 12.5.6.10
StrikeOut
Strikeout annotation - Section 12.5.6.10
Stamp
Rubber stamp annotation - Section 12.5.6.12
Caret
Caret annotation - Section 12.5.6.11
Ink
Ink annotation - Section 12.5.6.13
Popup
Popup annotation - Section 12.5.6.14
FileAttachment
File attachment annotation - Section 12.5.6.15
Sound
Sound annotation - Section 12.5.6.16
Movie
Movie annotation - Section 12.5.6.17
Widget
Widget annotation (form field) - Section 12.5.6.19
Screen
Screen annotation - Section 12.5.6.18
PrinterMark
Printer’s mark annotation - Section 12.5.6.20
TrapNet
Trap network annotation - Section 12.5.6.21
Watermark
Watermark annotation - Section 12.5.6.22
ThreeD
3D annotation - Section 12.5.6.24
Redact
Redaction annotation - Section 12.5.6.23
RichMedia
RichMedia annotation - Adobe Extension Level 3
Unknown
Unknown annotation type
Implementations§
Source§impl AnnotationSubtype
impl AnnotationSubtype
Sourcepub fn from_pdf_name(name: &str) -> Self
pub fn from_pdf_name(name: &str) -> Self
Parse from PDF name.
Sourcepub fn is_markup(&self) -> bool
pub fn is_markup(&self) -> bool
Check if this is a markup annotation (has popup, replies, etc.)
Sourcepub fn is_text_markup(&self) -> bool
pub fn is_text_markup(&self) -> bool
Check if this is a text markup annotation.