PdfLinkAnnotation class final
A link annotation (FPDF_ANNOT_LINK).
Links carry either a uri (for URI actions) or a page destination (not
yet exposed — uri is null for non-URI actions). Callers should check
uri and filter appropriately; not all links have URI actions.
- Inheritance
-
- Object
- PdfAnnotation
- PdfLinkAnnotation
Constructors
- PdfLinkAnnotation({required int pageIndex, String? uri, String? contents, String? author, PdfRect? rect, PdfColor? color, PdfDate? modifiedDate, required int flags, PdfPopupAnnotation? popup})
-
Creates a PdfLinkAnnotation.
const
Properties
-
The annotation author (
/Tdictionary entry), ornullif absent.finalinherited - color → PdfColor?
-
The annotation colour, or
nullif no colour entry is present.finalinherited - contents → String?
-
The annotation's
Contentsstring, ornullif absent.finalinherited - flags → int
-
Raw
FPDF_ANNOT_FLAG_*bitmask.finalinherited - hashCode → int
-
The hash code for this object.
no setteroverride
- modifiedDate → PdfDate?
-
The last-modified date (
/Mdictionary entry), ornullif absent.finalinherited - pageIndex → int
-
Zero-based index of the page this annotation belongs to.
finalinherited
- popup → PdfPopupAnnotation?
-
Inlined popup annotation data, or
nullif this annotation has no popup.finalinherited - rect → PdfRect?
-
The bounding rectangle in PDF page coordinates, or
nullif unavailable.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri → String?
-
The URI target of this link, or
nullif the link does not have a URI action (e.g. it is a page-destination link or an unsupported action type).final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override