DeleteAnnotations
DeleteAnnotations()
删除文档中的所有注释。
public void DeleteAnnotations()
例子
PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
editor.DeleteAnnotations();
editor.Save("example_out.pdf");
也可以看看
- class PdfAnnotationEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF
DeleteAnnotations(string)
删除文档中指定类型的所有注解。
public void DeleteAnnotations(string annotType)
范围 | 类型 | 描述 |
---|---|---|
annotType | String | 注释类型将被删除。 |
例子
PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
editor.DeleteAnnotations("Text");
editor.Save("example_out.pdf");
也可以看看
- class PdfAnnotationEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF