CreateApplicationLink

创建一个链接以在 PDF 文档中启动应用程序。

public void CreateApplicationLink(Rectangle rect, string application, int page, Color clr, 
    Enum[] actionName)
范围类型描述
rectRectangle活动点击的矩形。
applicationString要启动的应用程序的路径。
pageInt32将创建与链接绑定的矩形的原始页面数。
clrColor活动点击的矩形颜色。
actionNameEnum[]对应于在 Acrobat 查看器中执行的菜单项的操作数组(PredefinedAction 枚举的成员)。

例子

PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreateApplicationLink(new System.Drawing.Rectangle(0, 0, 100, 100),
    "explorer", 1, System.Drawing.Color.Red,
    new Enum[] { PredefinedAction.FirstPage, PredefinedAction.PrintDialog });
editor.Save("example_out.pdf");

也可以看看


创建一个链接以在 PDF 文档中启动应用程序。

public void CreateApplicationLink(Rectangle rect, string application, int page, Color clr)
范围类型描述
rectRectangle活动点击的矩形。
applicationString要启动的应用程序的路径。
pageInt32将创建与链接绑定的矩形的原始页面数。
clrColor活动点击的矩形颜色。

例子

PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreateApplicationLink(new System.Drawing.Rectangle(0, 0, 100, 100),
    "explorer", 1, System.Drawing.Color.Red });
editor.Save("example_out.pdf");

也可以看看


创建一个链接以在 PDF 文档中启动应用程序。

public void CreateApplicationLink(Rectangle rect, string application, int page)
范围类型描述
rectRectangle活动点击的矩形。
applicationString要启动的应用程序的路径。
pageInt32将创建与链接绑定的矩形的原始页面数。

例子

PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreateApplicationLink(new System.Drawing.Rectangle(0, 0, 100, 100), "explorer", 1 });
editor.Save("example_out.pdf");

也可以看看