PdfContentEditor.CreateCustomActionLink
Contents
[
Hide
]PdfContentEditor.CreateCustomActionLink method
Creates a link to custom actions in PDF document.
public void CreateCustomActionLink(Rectangle rect, int originalPage, Color color, Enum[] actionName)
Parameter | Type | Description |
---|---|---|
rect | Rectangle | The rectangle for active click. |
originalPage | Int32 | The number of original page where rectangle bound with link will be created. |
color | 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.CreateCustomActionLink(new System.Drawing.Rectangle(0, 0, 100, 100),
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