pub enum Annotation {
Show 19 variants
Link(LinkAnnotation),
TextMarkup(TextMarkupAnnotation),
Text(TextAnnotation),
FreeText(FreeTextAnnotation),
Line(LineAnnotation),
Shape(ShapeAnnotation),
Polygon(PolygonAnnotation),
Ink(InkAnnotation),
Stamp(StampAnnotation),
Popup(PopupAnnotation),
Caret(CaretAnnotation),
FileAttachment(FileAttachmentAnnotation),
Redact(RedactAnnotation),
Watermark(WatermarkAnnotation),
Sound(SoundAnnotation),
Movie(MovieAnnotation),
Screen(ScreenAnnotation),
ThreeD(ThreeDAnnotation),
RichMedia(RichMediaAnnotation),
}Expand description
Generic annotation wrapper for all annotation types.
This enum provides a unified interface for all PDF annotation types.
Variants§
Link(LinkAnnotation)
Link annotation (hyperlinks, page navigation)
TextMarkup(TextMarkupAnnotation)
Text markup annotation (Highlight, Underline, StrikeOut, Squiggly)
Text(TextAnnotation)
Text annotation (sticky notes)
FreeText(FreeTextAnnotation)
FreeText annotation (text boxes displayed on page)
Line(LineAnnotation)
Line annotation
Shape(ShapeAnnotation)
Shape annotation (Square or Circle)
Polygon(PolygonAnnotation)
Polygon or PolyLine annotation
Ink(InkAnnotation)
Ink annotation (freehand drawing)
Stamp(StampAnnotation)
Stamp annotation (approval stamps, etc.)
Popup(PopupAnnotation)
Popup annotation (pop-up window for other annotations)
Caret(CaretAnnotation)
Caret annotation (text insertion markers)
FileAttachment(FileAttachmentAnnotation)
File attachment annotation
Redact(RedactAnnotation)
Redact annotation (marks content for removal)
Watermark(WatermarkAnnotation)
Watermark annotation (transparent text overlay)
Sound(SoundAnnotation)
Sound annotation (embedded audio)
Movie(MovieAnnotation)
Movie annotation (embedded video, legacy)
Screen(ScreenAnnotation)
Screen annotation (modern multimedia with renditions)
ThreeD(ThreeDAnnotation)
3D annotation (embedded 3D models)
RichMedia(RichMediaAnnotation)
RichMedia annotation (Flash, video players)
Implementations§
Trait Implementations§
Source§impl Clone for Annotation
impl Clone for Annotation
Source§fn clone(&self) -> Annotation
fn clone(&self) -> Annotation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Annotation
impl Debug for Annotation
Source§impl From<CaretAnnotation> for Annotation
impl From<CaretAnnotation> for Annotation
Source§fn from(caret: CaretAnnotation) -> Self
fn from(caret: CaretAnnotation) -> Self
Source§impl From<FileAttachmentAnnotation> for Annotation
impl From<FileAttachmentAnnotation> for Annotation
Source§fn from(file: FileAttachmentAnnotation) -> Self
fn from(file: FileAttachmentAnnotation) -> Self
Source§impl From<FreeTextAnnotation> for Annotation
impl From<FreeTextAnnotation> for Annotation
Source§fn from(freetext: FreeTextAnnotation) -> Self
fn from(freetext: FreeTextAnnotation) -> Self
Source§impl From<InkAnnotation> for Annotation
impl From<InkAnnotation> for Annotation
Source§fn from(ink: InkAnnotation) -> Self
fn from(ink: InkAnnotation) -> Self
Source§impl From<LineAnnotation> for Annotation
impl From<LineAnnotation> for Annotation
Source§fn from(line: LineAnnotation) -> Self
fn from(line: LineAnnotation) -> Self
Source§impl From<LinkAnnotation> for Annotation
impl From<LinkAnnotation> for Annotation
Source§fn from(link: LinkAnnotation) -> Self
fn from(link: LinkAnnotation) -> Self
Source§impl From<MovieAnnotation> for Annotation
impl From<MovieAnnotation> for Annotation
Source§fn from(movie: MovieAnnotation) -> Self
fn from(movie: MovieAnnotation) -> Self
Source§impl From<PolygonAnnotation> for Annotation
impl From<PolygonAnnotation> for Annotation
Source§fn from(polygon: PolygonAnnotation) -> Self
fn from(polygon: PolygonAnnotation) -> Self
Source§impl From<PopupAnnotation> for Annotation
impl From<PopupAnnotation> for Annotation
Source§fn from(popup: PopupAnnotation) -> Self
fn from(popup: PopupAnnotation) -> Self
Source§impl From<RedactAnnotation> for Annotation
impl From<RedactAnnotation> for Annotation
Source§fn from(redact: RedactAnnotation) -> Self
fn from(redact: RedactAnnotation) -> Self
Source§impl From<RichMediaAnnotation> for Annotation
impl From<RichMediaAnnotation> for Annotation
Source§fn from(richmedia: RichMediaAnnotation) -> Self
fn from(richmedia: RichMediaAnnotation) -> Self
Source§impl From<ScreenAnnotation> for Annotation
impl From<ScreenAnnotation> for Annotation
Source§fn from(screen: ScreenAnnotation) -> Self
fn from(screen: ScreenAnnotation) -> Self
Source§impl From<ShapeAnnotation> for Annotation
impl From<ShapeAnnotation> for Annotation
Source§fn from(shape: ShapeAnnotation) -> Self
fn from(shape: ShapeAnnotation) -> Self
Source§impl From<SoundAnnotation> for Annotation
impl From<SoundAnnotation> for Annotation
Source§fn from(sound: SoundAnnotation) -> Self
fn from(sound: SoundAnnotation) -> Self
Source§impl From<StampAnnotation> for Annotation
impl From<StampAnnotation> for Annotation
Source§fn from(stamp: StampAnnotation) -> Self
fn from(stamp: StampAnnotation) -> Self
Source§impl From<TextAnnotation> for Annotation
impl From<TextAnnotation> for Annotation
Source§fn from(text: TextAnnotation) -> Self
fn from(text: TextAnnotation) -> Self
Source§impl From<TextMarkupAnnotation> for Annotation
impl From<TextMarkupAnnotation> for Annotation
Source§fn from(markup: TextMarkupAnnotation) -> Self
fn from(markup: TextMarkupAnnotation) -> Self
Source§impl From<ThreeDAnnotation> for Annotation
impl From<ThreeDAnnotation> for Annotation
Source§fn from(threed: ThreeDAnnotation) -> Self
fn from(threed: ThreeDAnnotation) -> Self
Source§impl From<WatermarkAnnotation> for Annotation
impl From<WatermarkAnnotation> for Annotation
Source§fn from(watermark: WatermarkAnnotation) -> Self
fn from(watermark: WatermarkAnnotation) -> Self
Auto Trait Implementations§
impl Freeze for Annotation
impl RefUnwindSafe for Annotation
impl Send for Annotation
impl Sync for Annotation
impl Unpin for Annotation
impl UnsafeUnpin for Annotation
impl UnwindSafe for Annotation
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.