PdfDocumentLinkAnnotation class

Represents an annotation object with holds link on another location within a document.

//Create a new Pdf document
PdfDocument document = PdfDocument();
//Create a document link and add to the PDF page.
document.pages.add().annotations.add(PdfDocumentLinkAnnotation(
    Rect.fromLTWH(10, 40, 30, 30),
    PdfDestination(document.pages.add(), Offset(10, 0))));
//Save the document.
List<int> bytes = await document.save();
//Dispose the document.
document.dispose();
Inheritance

Constructors

PdfDocumentLinkAnnotation(Rect bounds, PdfDestination destination)
Initializes new PdfDocumentLinkAnnotation instance with specified bounds and destination.

Properties

annotationFlags ↔ List<PdfAnnotationFlags>
Gets or sets the annotation flags.
getter/setter pairinherited
appearance ↔ PdfAppearance
Gets appearance of the annotation.
getter/setter pairinherited
author ↔ String
Gets the author of the annotation.
getter/setter pairinherited
border ↔ PdfAnnotationBorder
Gets annotation's border properties like width, horizontal radius etc.
getter/setter pair
bounds ↔ Rect
Gets annotation's bounds in the PDF page.
getter/setter pairinherited
color ↔ PdfColor
Gets the annotation color.
getter/setter pair
destination ↔ PdfDestination?
Gets or sets the destination of the annotation.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
highlightMode ↔ PdfHighlightMode
Gets or sets the highlight mode of the link annotation.
getter/setter pairinherited
modifiedDate ↔ DateTime?
Gets the ModifiedDate of the annotation.
getter/setter pairinherited
opacity ↔ double
Gets the opacity of the annotation.
getter/setter pairinherited
page → PdfPage?
Gets a page of the annotation. Read-Only.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
setAppearance ↔ bool
Set whether the annotation requires an appearance.
getter/setter pairinherited
subject ↔ String
Gets the subject of the annotation.
getter/setter pairinherited
text ↔ String
Gets content of the annotation. The string value specifies the text of the annotation.
getter/setter pairinherited

Methods

flatten() → void
Flatten the annotation.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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