Did you find this guide helpful?
Some test text!
Java / Guides / Remove annotation
To remove an annotation from a document.
PDFDoc doc = new PDFDoc(filename);
Page page = doc.getPage(1);
// remove by index
page.annotRemove(0);
// remove by annotation
Annot annotation = page.getAnnot(0);
page.annotRemove(annotation);
Get the answers you need: Chat with us