PdfContentEditor.CreatePdfDocumentLink

Creates a link to another PDF document page.

public void CreatePdfDocumentLink(Rectangle rect, string remotePdf, int originalPage, 
    int destinationPage, Color clr, Enum[] actionName)
ParameterTypeDescription
rectRectangleThe rectangle for active click.
remotePdfStringThe PDF document which page will be opened.
originalPageInt32The number of original page where rectangle bound with link will be created.
destinationPageInt32The destination page.
clrColorThe colour of rectangle for active click.
actionNameEnum[]The array of actions (members of PredefinedAction enum) corresponding to executing menu items in Acrobat viewer.

Examples

PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreatePdfDocumentLink(new System.Drawing.Rectangle(0, 0, 100, 100),
    "another_example.pdf", 1, 1, System.Drawing.Color.Red,
    new Enum[] { PredefinedAction.FirstPage, PredefinedAction.PrintDialog });
editor.Save("example_out.pdf");

See Also


Creates a link to another PDF document page.

public void CreatePdfDocumentLink(Rectangle rect, string remotePdf, int originalPage, 
    int destinationPage, Color clr)
ParameterTypeDescription
rectRectangleThe rectangle for active click.
remotePdfStringThe PDF document which page will be opened.
originalPageInt32The number of original page where rectangle bound with link will be created.
destinationPageInt32The destination page.
clrColorThe colour of rectangle for active click.

Examples

PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreatePdfDocumentLink(new System.Drawing.Rectangle(0, 0, 100, 100),
    "another_example.pdf", 1, 1, System.Drawing.Color.Red });
editor.Save("example_out.pdf");

See Also


Creates a link to another PDF document page.

public void CreatePdfDocumentLink(Rectangle rect, string remotePdf, int originalPage, 
    int destinationPage)
ParameterTypeDescription
rectRectangleThe rectangle for active click.
remotePdfStringThe PDF document which page will be opened.
originalPageInt32The number of original page where rectangle bound with link will be created.
destinationPageInt32The destination page.

Examples

PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreatePdfDocumentLink(new System.Drawing.Rectangle(0, 0, 100, 100), "another_example.pdf", 1, 1 });
editor.Save("example_out.pdf");

See Also