Section:
To remove an annotation from a document.
1async function main() {2 const doc = await PDFNet.PDFDoc.createFromURL(filename);3 const page = await doc.getPage(1);45 // remove by index6 await page.annotRemove(0);78 // remove by annotation9 const annotation = await page.getAnnot(0);10 await page.annotRemove(annotation);11}12PDFNet.runWithCleanup(main);
Did you find this helpful?
Trial setup questions?
Need other help?
Pricing or product questions?