pub struct Annotation {
pub subtype: String,
pub rect: Rect,
pub flags: i64,
pub appearance: Option<ObjectId>,
pub generated: Option<GeneratedAppearance>,
pub oc: Option<PdfObject>,
pub dest: Option<Destination>,
pub uri: Option<String>,
}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.
dest: Option<Destination>The in-document navigation target this annotation links to — a resolved
Destination from a /Dest, a go-to action (/A /S /GoTo), or a
remote go-to whose target page is in range. None for non-link
annotations and for URI / external links (see Annotation::uri).
Chiefly populated for Link annotations.
uri: Option<String>An external link target: a URI (/A /S /URI) or a remote go-to file name
(/A /S /GoToR /F). None for in-document and non-link annotations.
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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more