Some test text!

Loading...
Guides
Remove annotation

Remove annotation from document in Ruby

To remove an annotation from a document.

doc = PDFDoc.new(filename)
page = doc.GetPage(1)

# remove by index
page.AnnotRemove(0)

# remove by annotation
annotation = page.GetAnnot(0)
page.AnnotRemove(annotation)

Get the answers you need: Support