PdfTextWebLink class Null safety

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

Initializes a new instance of the PdfTextWebLink class.

Properties

appearance PdfAppearance
Gets appearance of the annotation.
read / writeinherited
author String
Gets the author of the annotation.
read / writeinherited
border PdfAnnotationBorder
Gets annotation's border properties like width, horizontal radius etc.
read / writeinherited
bounds Rect
Gets annotation's bounds in the PDF page.
read / writeinherited
brush PdfBrush?
Get or sets the brush.
read / write
color PdfColor
Gets the annotation color.
read / writeinherited
font PdfFont?
Get or sets the font.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
innerColor PdfColor
Gets the inner color of the annotation.
read / writeinherited
modifiedDate DateTime?
Gets the ModifiedDate of the annotation.
read / writeinherited
opacity double
Gets the opacity of the annotation.
read / writeinherited
page PdfPage?
Gets a page of the annotation. Read-Only.
read-onlyinherited
pen PdfPen?
Get or sets the pen.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
setAppearance bool
Gets or sets whether the annotation needs appearance.
read / writeinherited
stringFormat PdfStringFormat?
Get or sets the stringFormat.
read / write
subject String
Gets the subject of the annotation.
read / writeinherited
text String
Gets content of the annotation. The string value specifies the text of the annotation.
read / writeinherited
url String
Gets or sets the Uri address.
read / write

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 non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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