1. Home
  2. Foxit PDF SDK for Web
  3. How to Protect Annotations with Foxit PDF SDK for Web

How to Protect Annotations with Foxit PDF SDK for Web

Protecting annotations adds another layer of security for your PDF documents. Our feature described below sets the annotation to a locked state where only the reply can not be edited.

With Foxit PDF SDK for Web, this is easily achieved with the following code:

pdfDoc.getAnnots().then((data) => { 
 let annot = data[0][0]; 
 annot.setFlags(128); 
}); 
Updated on October 15, 2019

Was this article helpful?

Related Articles