Class PdfLink
Represents a link annotation within a PDF document.
public sealed class PdfLink : PdfPageObject, IDisposable
- Inheritance
-
PdfLink
- Implements
- Inherited Members
Remarks
A PdfLink object provides access to the destination or action associated with a link annotation in a PDF document. Use this class to retrieve information about where the link points to, such as a specific page or an external action.
Methods
GetAction()
Retrieves the action associated with the current PDF link, if any.
public PdfAction? GetAction()
Returns
- PdfAction
A PdfAction object representing the action associated with the link, or null if no action is associated.
GetDestination()
Retrieves the destination associated with the current PDF link.
public PdfDestination? GetDestination()
Returns
- PdfDestination
A PdfDestination object representing the destination of the link, or null if no destination is associated with the link.
Remarks
The destination provides information about where the link points to within the PDF document, such as a specific page or location. If the link does not have an associated destination, the method returns null.