PdfContentEditor.CreateApplicationLink

Creates a link to launch an application in PDF document.

public void CreateApplicationLink(Rectangle rect, string application, int page, Color clr, 
    Enum[] actionName)
ParameterTypeDescription
rectRectangleThe rectangle for active click.
applicationStringThe path of application to be launched.
pageInt32The number of original page where rectangle bound with link will be created.
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.CreateApplicationLink(new System.Drawing.Rectangle(0, 0, 100, 100),
    "explorer", 1, System.Drawing.Color.Red,
    new Enum[] { PredefinedAction.FirstPage, PredefinedAction.PrintDialog });
editor.Save("example_out.pdf");

See Also


Creates a link to launch an application in PDF document.

public void CreateApplicationLink(Rectangle rect, string application, int page, Color clr)
ParameterTypeDescription
rectRectangleThe rectangle for active click.
applicationStringThe path of application to be launched.
pageInt32The number of original page where rectangle bound with link will be created.
clrColorThe colour of rectangle for active click.

Examples

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

See Also


Creates a link to launch an application in PDF document.

public void CreateApplicationLink(Rectangle rect, string application, int page)
ParameterTypeDescription
rectRectangleThe rectangle for active click.
applicationStringThe path of application to be launched.
pageInt32The number of original page where rectangle bound with link will be created.

Examples

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

See Also