CreateCaret
PdfContentEditor.CreateCaret method
创建插入符号注释。
public void CreateCaret(int page, Rectangle annotRect, Rectangle caretRect, string symbol,
string annotContents, Color color)
范围 | 类型 | 描述 |
---|---|---|
page | Int32 | 将在其中创建注释的原始页数。 |
annotRect | Rectangle | 定义页面上注释位置的注释矩形。 |
caretRect | Rectangle | 底层插入符号的实际边界。 |
symbol | String | 符号将与插入符号相关联。值可以是:“P”(段落)、“无”。 |
annotContents | String | 注释的内容。 |
color | Color | 注释的颜色。 |
例子
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreateCaret(1,
new System.Drawing.Rectangle(50, 50, 100, 100),
new System.Drawing.Rectangle(60, 60, 70, 70),
"None", "Welcome to Aspose", System.Drawing.Color.Red);
editor.Save("example_out.pdf");
也可以看看
- class PdfContentEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF