CreateText

PdfContentEditor.CreateText method

在 PDF 文档中创建文本注释

public void CreateText(Rectangle rect, string title, string contents, bool open, string icon, 
    int page)
范围类型描述
rectRectangle定义页面上注释位置的注释矩形。
titleString注释的标题。
contentsString注释的内容。
openBoolean一个标志,指定注释最初是否应打开显示。
iconString图标的名称将用于显示注释。 这个值可以是:“注释”、“键”、“注释”、“帮助”、“新建段落”、“段落”、“插入”
pageInt32将在其中创建文本注释的原始页数。

例子

PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreateText(new System.Drawing.Rectangle(0, 0, 100, 100),
    "Welcome to Aspose", "You are welcome to Aspose!", true, "Key", 1);
editor.Save("example_out.pdf");

也可以看看