Method CreateEmbeddedDocumentLink
- Namespace
- PdfSharp.Pdf.Annotations
- Assembly
- PdfSharp.dll
CreateEmbeddedDocumentLink(PdfRectangle, string, bool?)
[Obsolete("PDFsharp 6.4: Parameter requires a PDF page as first parameter.")]
public static PdfLinkAnnotation CreateEmbeddedDocumentLink(PdfRectangle rect, string destinationPath, bool? newWindow = null)
Parameters
rectPdfRectangledestinationPathstringnewWindowbool?
Returns
CreateEmbeddedDocumentLink(PdfPage, PdfRectangle, string, bool?)
Creates a link to an embedded document.
public static PdfLinkAnnotation CreateEmbeddedDocumentLink(PdfPage page, PdfRectangle rect, string destinationPath, bool? newWindow = null)
Parameters
pagePdfPageThe page the annotation belong to.
rectPdfRectangleThe link area in default page coordinates.
destinationPathstringThe path to the named destination through the embedded documents. The path is separated by '' and the last segment is the name of the named destination. The other segments describe the route from the current (root or embedded) document to the embedded document holding the destination. ".." references to the parent, other strings refer to a child with this name in the EmbeddedFiles name dictionary.
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.
Returns
CreateEmbeddedDocumentLink(PdfRectangle, string, string, bool?)
[Obsolete("PDFsharp 6.4: Parameter requires a PDF page as first parameter.")]
public static PdfLinkAnnotation CreateEmbeddedDocumentLink(PdfRectangle rect, string documentPath, string destinationPath, bool? newWindow = null)
Parameters
rectPdfRectangledocumentPathstringdestinationPathstringnewWindowbool?
Returns
CreateEmbeddedDocumentLink(PdfPage, PdfRectangle, string, string, bool?)
Creates a link to an embedded document in another document.
public static PdfLinkAnnotation CreateEmbeddedDocumentLink(PdfPage page, PdfRectangle rect, string documentPath, string destinationPath, bool? newWindow = null)
Parameters
pagePdfPageThe page the annotation belong to.
rectPdfRectangleThe link area in default page coordinates.
documentPathstringThe path to the target document.
destinationPathstringThe path to the named destination through the embedded documents in the target document. The path is separated by '' and the last segment is the name of the named destination. The other segments describe the route from the root document to the embedded document. Each segment name refers to a child with this name in the EmbeddedFiles name dictionary.
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.