PdfContentEditor.CreateLocalLink
Contents
[
Hide
]CreateLocalLink(Rectangle, int, int, Color, Enum[])
Creates a local link in PDF document.
public void CreateLocalLink(Rectangle rect, int desPage, int originalPage, Color clr,
Enum[] actionName)
Parameter | Type | Description |
---|---|---|
rect | Rectangle | The rectangle for active click. |
desPage | Int32 | The destination page. |
originalPage | Int32 | The number of original page where rectangle bound with local link will be created. |
clr | Color | The colour of rectangle for active click. |
actionName | Enum[] | 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.CreateLocalLink(new System.Drawing.Rectangle(0, 0, 100, 100),
2, 1, System.Drawing.Color.Red,
new Enum[] { PredefinedAction.FirstPage, PredefinedAction.PrintDialog });
editor.Save("example_out.pdf");
See Also
- class PdfContentEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
CreateLocalLink(Rectangle, int, int, Color)
Creates a local link in PDF document.
public void CreateLocalLink(Rectangle rect, int desPage, int originalPage, Color clr)
Parameter | Type | Description |
---|---|---|
rect | Rectangle | The rectangle for active click. |
desPage | Int32 | The destination page. |
originalPage | Int32 | The number of original page where rectangle bound with local link will be created. |
clr | Color | The colour of rectangle for active click. |
Examples
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreateLocalLink(new System.Drawing.Rectangle(0, 0, 100, 100),
2, 1, System.Drawing.Color.Red });
editor.Save("example_out.pdf");
See Also
- class PdfContentEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
CreateLocalLink(Rectangle, int, int)
Creates a local link in PDF document.
public void CreateLocalLink(Rectangle rect, int desPage, int originalPage)
Parameter | Type | Description |
---|---|---|
rect | Rectangle | The rectangle for active click. |
desPage | Int32 | The destination page. |
originalPage | Int32 | The number of original page where rectangle bound with local link will be created. |
Examples
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreateLocalLink(new System.Drawing.Rectangle(0, 0, 100, 100), 2, 1});
editor.Save("example_out.pdf");
See Also
- class PdfContentEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF