Method AddDocumentLink
AddDocumentLink(PdfRectangle, int, XPoint?)
Adds an internal document link.
public PdfLinkAnnotation AddDocumentLink(PdfRectangle rect, int destinationPage, XPoint? point = null)
Parameters
rectPdfRectangleThe link area in default page coordinates.
destinationPageintThe destination page.
pointXPoint?The position in the destination page.
Returns
AddDocumentLink(PdfRectangle, string)
Adds an internal document link.
public PdfLinkAnnotation AddDocumentLink(PdfRectangle rect, string destinationName)
Parameters
rectPdfRectangleThe link area in default page coordinates.
destinationNamestringThe Named Destination’s name.
Returns
AddDocumentLink(PdfRectangle, string, string, bool?)
Adds an external document link.
public PdfLinkAnnotation AddDocumentLink(PdfRectangle rect, string documentPath, string destinationName, bool? newWindow = null)
Parameters
rectPdfRectangleThe link area in default page coordinates.
documentPathstringThe path to the target document.
destinationNamestringThe Named Destination’s name in the target document.
newWindowbool?True, if the destination document shall be opened in a new window. If not set, the viewer application should behave in accordance with the current user preference.