CreateMarkup

PdfContentEditor.CreateMarkup method

在 PDF 文档中创建标记注释。

public void CreateMarkup(Rectangle rect, string contents, int type, int page, Color clr)
范围类型描述
rectRectangle定义页面上注释位置的矩形。
contentsString注释的内容。
typeInt32标记注释的类型。可以是 0(突出显示)、1(下划线)、2(删除线)、3(波浪线)。
pageInt32将在其中创建注释的原始页数。
clrColor标记的颜色。

例子

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");

也可以看看