Some test text!

Loading...
Guides

Remove annotation from document using JavaScript

Only available with the Full API

To remove an annotation from a document.

const doc = await PDFNet.PDFDoc.createFromURL(filename);
const page = await doc.getPage(1);

// remove by index
page.annotRemove(0);

// remove by annotation
const annotation = await page.getAnnot(0);
page.annotRemove(annotation);

Get the answers you need: Support