Some test text!

Loading...
Guides
Remove annotation

Remove annotation from document in Node.js

To remove an annotation from a document.

async function main() {
  const doc = await PDFNet.PDFDoc.createFromURL(filename);
  const page = await doc.getPage(1);

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

  // remove by annotation
  const annotation = await page.getAnnot(0);
  await page.annotRemove(annotation);
}
PDFNet.runWithCleanup(main);

Get the answers you need: Support

Upcoming Webinar: PDFTron SDK Tech Review | Nov 29, 2022 at 2 pm ET

PDFTron SDK

The Platform

NEW

© 2022 PDFTron Systems Inc. All rights reserved.

Privacy

Terms of Use