PdfContentEditor.CreateWebLink

Creates a web link in PDF document.

public void CreateWebLink(Rectangle rect, string url, int originalPage, Color clr, 
    Enum[] actionName)
ParameterTypeDescription
rectRectangleThe rectangle for active click.
urlStringThe web link destination.
originalPageInt32The number of original page on which rectangle bound with web 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.CreateWebLink(new System.Drawing.Rectangle(0, 0, 100, 100),
    "http://www.aspose.com", 1, System.Drawing.Color.Red,
    new Enum[] { PredefinedAction.FirstPage, PredefinedAction.PrintDialog });
editor.Save("example_out.pdf");

See Also


Creates a web link in PDF document.

public void CreateWebLink(Rectangle rect, string url, int originalPage, Color clr)
ParameterTypeDescription
rectRectangleThe rectangle for active click.
urlStringThe web link destination.
originalPageInt32The number of original page where rectangle bound with web link will be created.
clrColorThe colour of rectangle for active click.

Examples

PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreateWebLink(new System.Drawing.Rectangle(0, 0, 100, 100),
    "http://www.aspose.com", 1, System.Drawing.Color.Red });
editor.Save("example_out.pdf");

See Also


Creates a web link in PDF document.

public void CreateWebLink(Rectangle rect, string url, int originalPage)
ParameterTypeDescription
rectRectangleThe rectangle for active click.
urlStringThe web link destination.
originalPageInt32The number of original page where rectangle bound with web link will be created.

Examples

PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreateWebLink(new System.Drawing.Rectangle(0, 0, 100, 100), "http://www.aspose.com", 1 });
editor.Save("example_out.pdf");

See Also