Method CreateDocumentLink
- Namespace
- PdfSharp.Pdf.Annotations
- Assembly
- PdfSharp.dll
CreateDocumentLink(PdfRectangle, int, XPoint?)
[Obsolete("PDFsharp 6.4: Parameter requires a PDF page as first parameter.")]
public static PdfLinkAnnotation CreateDocumentLink(PdfRectangle rect, int destinationPage, XPoint? point = null)
Parameters
rectPdfRectangledestinationPageintpointXPoint?
Returns
CreateDocumentLink(PdfPage, PdfRectangle, int, XPoint?)
Creates a link within the current document.
public static PdfLinkAnnotation CreateDocumentLink(PdfPage page, PdfRectangle rect, int destinationPage, XPoint? point = null)
Parameters
pagePdfPageThe page the annotation belong to.
rectPdfRectangleThe link area in default page coordinates.
destinationPageintThe one-based destination page number.
pointXPoint?The position in the destination page.
Returns
CreateDocumentLink(PdfRectangle, string)
[Obsolete("PDFsharp 6.4: Parameter requires a PDF page as first parameter.")]
public static PdfLinkAnnotation CreateDocumentLink(PdfRectangle rect, string destinationName)
Parameters
rectPdfRectangledestinationNamestring
Returns
CreateDocumentLink(PdfPage, PdfRectangle, string)
Creates a link within the current document using a named destination.
public static PdfLinkAnnotation CreateDocumentLink(PdfPage page, PdfRectangle rect, string destinationName)
Parameters
pagePdfPageThe page the annotation belong to.
rectPdfRectangleThe link area in default page coordinates.
destinationNamestringThe named destination’s name.
Returns
CreateDocumentLink(PdfRectangle, string, string, bool?)
[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
rectPdfRectangledocumentPathstringdestinationNamestringnewWindowbool?
Returns
CreateDocumentLink(PdfPage, PdfRectangle, string, string, bool?)
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
pagePdfPageThe page the annotation belong to.
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.