PdfTextWebLink class

Represents the class for text web link annotation.

//Create a new Pdf document
PdfDocument document = PdfDocument();
//Create and draw the web link in the PDF page
PdfTextWebLink(
        url: 'www.google.co.in',
        text: 'google',
        font: PdfStandardFont(PdfFontFamily.timesRoman, 14),
        brush: PdfSolidBrush(PdfColor(0, 0, 0)),
        pen: PdfPens.brown,
        format: PdfStringFormat(
            alignment: PdfTextAlignment.center,
            lineAlignment: PdfVerticalAlignment.middle))
    .draw(document.pages.add(), Offset(50, 40));
//Save the document.
List<int> bytes = await document.save();
//Dispose the document.
document.dispose();
Inheritance

Constructors

PdfTextWebLink({required String url, String? text, PdfBrush? brush, PdfFont? font, PdfPen? pen, PdfStringFormat? format})
Initializes a new instance of the PdfTextWebLink class.

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
bounds ↔ Rect
Gets annotation's bounds in the PDF page.
getter/setter pairinherited
brush ↔ PdfBrush?
Get or sets the brush.
getter/setter pair
font ↔ PdfFont?
Get or sets the font.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
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
pen ↔ PdfPen?
Get or sets the pen.
getter/setter pair
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
stringFormat ↔ PdfStringFormat?
Get or sets the stringFormat.
getter/setter pair
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
url ↔ String
Gets or sets the Uri address.
getter/setter pair

Methods

draw(PdfPage page, Offset location) → void
Draws a text web link on the PDF page.
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