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 August 21, 2019

Was this article helpful?
Thanks for your feedback. If you have a comment on how to improve the article, you can write it here: