CreateMarkup
PdfContentEditor.CreateMarkup method
在 PDF 文档中创建标记注释。
public void CreateMarkup(Rectangle rect, string contents, int type, int page, Color clr)
范围 | 类型 | 描述 |
---|---|---|
rect | Rectangle | 定义页面上注释位置的矩形。 |
contents | String | 注释的内容。 |
type | Int32 | 标记注释的类型。可以是 0(突出显示)、1(下划线)、2(删除线)、3(波浪线)。 |
page | Int32 | 将在其中创建注释的原始页数。 |
clr | Color | 标记的颜色。 |
例子
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreateMarkup(new System.Drawing.Rectangle(0, 0, 100, 100),
"Welcome to Aspose", 0, 1, System.Drawing.Color.Red);
editor.Save("example_out.pdf");
也可以看看
- class PdfContentEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF