Some test text!

Discord Logo

Chat with us

PDFTron is now Apryse, learn more here.

Cpp / Guides / Remove annotation

Platform


PDFTron is now Apryse, learn more here.

Remove annotation from document in C++

To remove an annotation from a document.

PDFDoc doc(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: Support