PdfContentEditor.CreatePdfDocumentLink
Contents
[
Hide
]CreatePdfDocumentLink(Rectangle, string, int, int, Color, Enum[])
Creates a link to another PDF document page.
public void CreatePdfDocumentLink(Rectangle rect, string remotePdf, int originalPage,
int destinationPage, Color clr, Enum[] actionName)
Parameter | Type | Description |
---|---|---|
rect | Rectangle | The rectangle for active click. |
remotePdf | String | The PDF document which page will be opened. |
originalPage | Int32 | The number of original page where rectangle bound with link will be created. |
destinationPage | Int32 | The destination page. |
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.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
- class PdfContentEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
CreatePdfDocumentLink(Rectangle, string, int, int, Color)
Creates a link to another PDF document page.
public void CreatePdfDocumentLink(Rectangle rect, string remotePdf, int originalPage,
int destinationPage, Color clr)
Parameter | Type | Description |
---|---|---|
rect | Rectangle | The rectangle for active click. |
remotePdf | String | The PDF document which page will be opened. |
originalPage | Int32 | The number of original page where rectangle bound with link will be created. |
destinationPage | Int32 | The destination page. |
clr | Color | The 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
- class PdfContentEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
CreatePdfDocumentLink(Rectangle, string, int, int)
Creates a link to another PDF document page.
public void CreatePdfDocumentLink(Rectangle rect, string remotePdf, int originalPage,
int destinationPage)
Parameter | Type | Description |
---|---|---|
rect | Rectangle | The rectangle for active click. |
remotePdf | String | The PDF document which page will be opened. |
originalPage | Int32 | The number of original page where rectangle bound with link will be created. |
destinationPage | Int32 | The 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
- class PdfContentEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF