pub struct Annotation<'a> { /* private fields */ }Expand description
A PDF annotation, wrapping the raw dictionary.
Implementations§
Source§impl<'a> Annotation<'a>
impl<'a> Annotation<'a>
Sourcepub fn annotation_type(&self) -> AnnotationType
pub fn annotation_type(&self) -> AnnotationType
Return the annotation subtype.
Sourcepub fn flags(&self) -> AnnotationFlags
pub fn flags(&self) -> AnnotationFlags
Return the annotation flags.
Whether the annotation is hidden.
Sourcepub fn is_printable(&self) -> bool
pub fn is_printable(&self) -> bool
Whether the annotation should be printed.
Return the author (/T).
Sourcepub fn border_style(&self) -> Option<BorderStyle>
pub fn border_style(&self) -> Option<BorderStyle>
Return the border style (/BS).
Sourcepub fn border_array(&self) -> Option<[f32; 3]>
pub fn border_array(&self) -> Option<[f32; 3]>
Return the legacy border array (/Border).
Sourcepub fn border_effect(&self) -> Option<BorderEffect>
pub fn border_effect(&self) -> Option<BorderEffect>
Return the border effect (/BE).
Sourcepub fn interior_color(&self) -> Option<Color>
pub fn interior_color(&self) -> Option<Color>
Return the interior color (/IC).
Sourcepub fn appearance(&self) -> Option<AppearanceDict<'a>>
pub fn appearance(&self) -> Option<AppearanceDict<'a>>
Return the appearance dictionary (/AP).
Sourcepub fn normal_appearance(&self) -> Option<Stream<'a>>
pub fn normal_appearance(&self) -> Option<Stream<'a>>
Return the normal appearance stream directly.
Sourcepub fn creation_date(&self) -> Option<String>
pub fn creation_date(&self) -> Option<String>
Return the creation date (/CreationDate).
Sourcepub fn irt(&self) -> Option<Annotation<'a>>
pub fn irt(&self) -> Option<Annotation<'a>>
Return the in-reply-to annotation dictionary (/IRT).
Sourcepub fn reply_type(&self) -> Option<String>
pub fn reply_type(&self) -> Option<String>
Return the reply type (/RT).
Sourcepub fn state_model(&self) -> Option<String>
pub fn state_model(&self) -> Option<String>
Return the state model (/StateModel).
Sourcepub fn popup(&self) -> Option<Annotation<'a>>
pub fn popup(&self) -> Option<Annotation<'a>>
Return the popup annotation dictionary (/Popup).
Sourcepub fn quad_points(&self) -> Option<QuadPoints>
pub fn quad_points(&self) -> Option<QuadPoints>
Return quad points (/QuadPoints).
Trait Implementations§
Source§impl<'a> Clone for Annotation<'a>
impl<'a> Clone for Annotation<'a>
Source§fn clone(&self) -> Annotation<'a>
fn clone(&self) -> Annotation<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for Annotation<'a>
impl<'a> !RefUnwindSafe for Annotation<'a>
impl<'a> Send for Annotation<'a>
impl<'a> Sync for Annotation<'a>
impl<'a> Unpin for Annotation<'a>
impl<'a> UnsafeUnpin for Annotation<'a>
impl<'a> !UnwindSafe for Annotation<'a>
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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