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.
Trait Implementations§
Source§impl Clone for AnnotationSubtype
impl Clone for AnnotationSubtype
Source§fn clone(&self) -> AnnotationSubtype
fn clone(&self) -> AnnotationSubtype
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AnnotationSubtype
impl Debug for AnnotationSubtype
Source§impl Hash for AnnotationSubtype
impl Hash for AnnotationSubtype
Source§impl PartialEq for AnnotationSubtype
impl PartialEq for AnnotationSubtype
impl Copy for AnnotationSubtype
impl Eq for AnnotationSubtype
impl StructuralPartialEq for AnnotationSubtype
Auto Trait Implementations§
impl Freeze for AnnotationSubtype
impl RefUnwindSafe for AnnotationSubtype
impl Send for AnnotationSubtype
impl Sync for AnnotationSubtype
impl Unpin for AnnotationSubtype
impl UnsafeUnpin for AnnotationSubtype
impl UnwindSafe for AnnotationSubtype
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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