Remove annotation from document on Server/Desktop

To remove an annotation from a document.

1doc := NewPDFDoc(filename)
2page := doc.GetPage(1)
3
4// remove by index
5page.AnnotRemove(0)
6
7// remove by annotation
8annotation := page.GetAnnot(0)
9page.AnnotRemove(annotation)

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales