Some test text!

Discord Logo

Chat with us

PDFTron is now Apryse, learn more here.

Ruby / Guides / Remove annotation

Platform


Documentation


PDFTron is now Apryse, learn more here.

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