PdfAnnotationView class

Typed view of an annotation already present on a loaded page.

The view does not duplicate the object: it reads through the PdfObjectStore and, on the first change, materializes a replacement with the same number, the way the incremental update requires.

Properties

color ↔ PdfColor?
The /C color of the annotation, or null when absent or transparent.
getter/setter pair
contents ↔ String?
The text of /Contents, or null when absent.
getter/setter pair
dictionary → PdfDict<PdfDataType>
The annotation dictionary, for reading.
no setter
flags ↔ int
The raw value of /F, or 0 when absent.
getter/setter pair
flagSet ↔ Set<PdfAnnotFlags>
/F read as a set of flags.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
isHidden → bool
Whether the annotation is marked as invisible to the reader.
no setter
isWidget → bool
Whether the annotation is a form widget.
no setter
missingAppearanceReason → String?
Why normalAppearance returned null, for use in warnings.
no setter
name ↔ String?
The unique name of the annotation (/NM), or null when absent.
getter/setter pair
normalAppearance → PdfAppearanceStream?
The normal appearance of this annotation, or null when there is no usable one.
no setter
page → PdfPage
The page that owns the annotation.
no setter
rect ↔ PdfBox?
The /Rect of the annotation, in user space and already normalized.
getter/setter pair
rectTopLeft ↔ PdfTopLeftRect?
The /Rect in "top-left" coordinates, as the user sees the page.
getter/setter pair
reference → PdfIndirect?
The indirect reference of the annotation, or null when it is written directly inside the /Annots array of the page.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subtype → String?
The /Subtype of the annotation, with the leading slash (/Link, /Widget, ...).
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setFlag(PdfAnnotFlags flag, bool enabled) → void
Turns a /F flag on or off.
toString() → String
A string representation of this object.
override
writableDictionary() → PdfDict<PdfDataType>?
The annotation dictionary, ready for writing.

Operators

operator ==(Object other) → bool
The equality operator.
inherited