PdfAnnotationEditor.DeleteAnnotations

DeleteAnnotations()

Deletes all annotations in the document.

public void DeleteAnnotations()

Examples

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

See Also


DeleteAnnotations(string)

Deletes all annotations of the specified type in the document.

public void DeleteAnnotations(string annotType)
ParameterTypeDescription
annotTypeStringThe type of annotation will be deleted.

Examples

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

See Also