PdfLinkAnnotation Class

A link annotation (ISO 32000-2, 12.5.6.5): a region of a page that opens a URI or goes to a destination.

public sealed class PdfLinkAnnotation : PdfAnnotation
Inheritance
PdfAnnotation PdfLinkAnnotation

Properties

NameDescription
ActionGets or sets the action of the link (/A, ISO 32000-2, 12.6), or null when it has none: a destination of the link (/Dest) is read as a PdfGoToAction. Setting an action removes the destination.
DestinationGets the destination the link goes to (a /Dest entry or a GoTo action), or null.
UriGets the URI the link opens (a URI action, 12.6.4.8), or null when the link has no URI or it is not a valid URI.

Gets or sets the action of the link (/A, ISO 32000-2, 12.6), or null when it has none: a destination of the link (/Dest) is read as a PdfGoToAction. Setting an action removes the destination.

public PdfAction? Action { get; set; }

Property value

PdfAction?

Exceptions

ArgumentException
The action refers to objects of another document.

Gets the destination the link goes to (a /Dest entry or a GoTo action), or null.

public PdfDestination? Destination { get; }

Property value

PdfDestination?

Gets the URI the link opens (a URI action, 12.6.4.8), or null when the link has no URI or it is not a valid URI.

public Uri? Uri { get; }

Property value

Uri?