CreateBookmarksAction
PdfContentEditor.CreateBookmarksAction method
使用指定的操作创建书签。
public void CreateBookmarksAction(string title, Color color, bool boldFlag, bool italicFlag,
string file, string actionType, string destination)
范围 | 类型 | 描述 |
---|---|---|
title | String | 书签的标题。 |
color | Color | 书签标题的颜色。 |
boldFlag | Boolean | 大胆归因的旗帜。 |
italicFlag | Boolean | 斜体归属标志。 |
file | String | 当操作类型为“GoToR”或“Launch”时需要另一个文件或应用程序。 |
actionType | String | 动作类型。该值可以是:“GoToR”、“Launch”、“GoTo”、“URI”。 |
destination | String | 本地目的地或远程目的地或 URL。 |
例子
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreateBookmarksAction("bookmark title",
System.Drawing.Color.Red, true, true, null, "GoTo", 1/*page number*/);
editor.Save("example_out.pdf");
也可以看看
- class PdfContentEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF