DeleteAnnotations

DeleteAnnotations()

删除文档中的所有注释。

public void DeleteAnnotations()

例子

PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
editor.DeleteAnnotations();
editor.Save("example_out.pdf");

也可以看看


DeleteAnnotations(string)

删除文档中指定类型的所有注解。

public void DeleteAnnotations(string annotType)
范围类型描述
annotTypeString注释类型将被删除。

例子

PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
editor.DeleteAnnotations("Text");
editor.Save("example_out.pdf");

也可以看看