CreatePdfDocumentLink
内容
[
隐藏
]CreatePdfDocumentLink(Rectangle, string, int, int, Color, Enum[])
创建指向另一个 PDF 文档页面的链接。
public void CreatePdfDocumentLink(Rectangle rect, string remotePdf, int originalPage,
int destinationPage, Color clr, Enum[] actionName)
范围 | 类型 | 描述 |
---|---|---|
rect | Rectangle | 活动点击的矩形。 |
remotePdf | String | 将打开哪个页面的 PDF 文档。 |
originalPage | Int32 | 将创建与链接绑定的矩形的原始页面数。 |
destinationPage | Int32 | 目标页面。 |
clr | Color | 活动点击的矩形颜色。 |
actionName | Enum[] | 对应于在 Acrobat 查看器中执行的菜单项的操作数组(PredefinedAction 枚举的成员)。 |
例子
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");
也可以看看
- class PdfContentEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF
CreatePdfDocumentLink(Rectangle, string, int, int, Color)
创建指向另一个 PDF 文档页面的链接。
public void CreatePdfDocumentLink(Rectangle rect, string remotePdf, int originalPage,
int destinationPage, Color clr)
范围 | 类型 | 描述 |
---|---|---|
rect | Rectangle | 活动点击的矩形。 |
remotePdf | String | 将打开哪个页面的 PDF 文档。 |
originalPage | Int32 | 将创建与链接绑定的矩形的原始页面数。 |
destinationPage | Int32 | 目标页面。 |
clr | Color | 活动点击的矩形颜色。 |
例子
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");
也可以看看
- class PdfContentEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF
CreatePdfDocumentLink(Rectangle, string, int, int)
创建指向另一个 PDF 文档页面的链接。
public void CreatePdfDocumentLink(Rectangle rect, string remotePdf, int originalPage,
int destinationPage)
范围 | 类型 | 描述 |
---|---|---|
rect | Rectangle | 活动点击的矩形。 |
remotePdf | String | 将打开哪个页面的 PDF 文档。 |
originalPage | Int32 | 将创建与链接绑定的矩形的原始页面数。 |
destinationPage | Int32 | 目标页面。 |
例子
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");
也可以看看
- class PdfContentEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF