Table of Contents

Method AddDocumentLink

Namespace
PdfSharp.Pdf
Assembly
PdfSharp.dll

Adds an internal document link.

public PdfLinkAnnotation AddDocumentLink(PdfRectangle rect, int destinationPage, XPoint? point = null)

Parameters

rect PdfRectangle

The link area in default page coordinates.

destinationPage int

The destination page.

point XPoint?

The position in the destination page.

Returns

PdfLinkAnnotation

Adds an internal document link.

public PdfLinkAnnotation AddDocumentLink(PdfRectangle rect, string destinationName)

Parameters

rect PdfRectangle

The link area in default page coordinates.

destinationName string

The Named Destination’s name.

Returns

PdfLinkAnnotation

Adds an external document link.

public PdfLinkAnnotation AddDocumentLink(PdfRectangle rect, string documentPath, string destinationName, bool? newWindow = null)

Parameters

rect PdfRectangle

The link area in default page coordinates.

documentPath string

The path to the target document.

destinationName string

The Named Destination’s name in the target document.

newWindow bool?

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.

Returns

PdfLinkAnnotation