DeleteAnnotations

DeleteAnnotations()

Tar bort alla kommentarer i dokumentet.

public void DeleteAnnotations()

Exempel

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

Se även


DeleteAnnotations(string)

Tar bort alla anteckningar av den angivna typen i dokumentet.

public void DeleteAnnotations(string annotType)
ParameterTypBeskrivning
annotTypeStringTypen av anteckning kommer att tas bort.

Exempel

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

Se även