pub struct Annotation {
pub subtype: String,
pub rect: Rect,
pub flags: i64,
pub appearance: Option<ObjectId>,
pub generated: Option<GeneratedAppearance>,
pub oc: Option<PdfObject>,
}Fields§
§subtype: String§rect: RectTarget rectangle in default page user space.
flags: i64/F flags (Hidden / NoView suppress screen rendering).
appearance: Option<ObjectId>The selected normal appearance stream: /AP /N, indexed by /AS
when /N is a state dictionary.
generated: Option<GeneratedAppearance>A synthesized appearance for an interactive-form widget whose producer
left no /AP (or set /NeedAppearances). Takes precedence over
appearance when present.
oc: Option<PdfObject>/OC optional-content membership (a Ref to an OCG/OCMD, or a direct dict), evaluated against the document’s OC config at paint time.
Implementations§
Source§impl Annotation
impl Annotation
Sourcepub fn is_viewable(&self) -> bool
pub fn is_viewable(&self) -> bool
True when the annotation should be painted in a screen rendering (before optional-content evaluation).
Trait Implementations§
Source§impl Clone for Annotation
impl Clone for Annotation
Source§fn clone(&self) -> Annotation
fn clone(&self) -> Annotation
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 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<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