PdfContentEditor.CreateFreeText

PdfContentEditor.CreateFreeText 方法

在 PDF 文档中创建自由文本注释

public void CreateFreeText(Rectangle rect, string contents, int page)
参数类型描述
rect矩形定义注释在页面上位置的注释矩形。
contents字符串注释的内容。
pageInt32将创建文本注释的原始页面编号。

示例

PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreateFreeText(new System.Drawing.Rectangle(0, 0, 100, 100), "Welcome to Aspose", 1);
editor.Save("example_out.pdf");

另请参阅