Table of Contents

Method CreateDocumentLink

Namespace
PdfSharp.Pdf.Annotations
Assembly
PdfSharp.dll
[Obsolete("PDFsharp 6.4: Parameter requires a PDF page as first parameter.")]
public static PdfLinkAnnotation CreateDocumentLink(PdfRectangle rect, int destinationPage, XPoint? point = null)

Parameters

rect PdfRectangle
destinationPage int
point XPoint?

Returns

PdfLinkAnnotation

Creates a link within the current document.

public static PdfLinkAnnotation CreateDocumentLink(PdfPage page, PdfRectangle rect, int destinationPage, XPoint? point = null)

Parameters

page PdfPage

The page the annotation belong to.

rect PdfRectangle

The link area in default page coordinates.

destinationPage int

The one-based destination page number.

point XPoint?

The position in the destination page.

Returns

PdfLinkAnnotation
[Obsolete("PDFsharp 6.4: Parameter requires a PDF page as first parameter.")]
public static PdfLinkAnnotation CreateDocumentLink(PdfRectangle rect, string destinationName)

Parameters

rect PdfRectangle
destinationName string

Returns

PdfLinkAnnotation

Creates a link within the current document using a named destination.

public static PdfLinkAnnotation CreateDocumentLink(PdfPage page, PdfRectangle rect, string destinationName)

Parameters

page PdfPage

The page the annotation belong to.

rect PdfRectangle

The link area in default page coordinates.

destinationName string

The named destination’s name.

Returns

PdfLinkAnnotation
[Obsolete("PDFsharp 6.4: Parameter requires a PDF page as first parameter.")]
public static PdfLinkAnnotation CreateDocumentLink(PdfRectangle rect, string documentPath, string destinationName, bool? newWindow = null)

Parameters

rect PdfRectangle
documentPath string
destinationName string
newWindow bool?

Returns

PdfLinkAnnotation

Creates a link to an external PDF document using a named destination.

public static PdfLinkAnnotation CreateDocumentLink(PdfPage page, PdfRectangle rect, string documentPath, string destinationName, bool? newWindow = null)

Parameters

page PdfPage

The page the annotation belong to.

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