Back to Blog
Developer Blog
How to Protect Annotations with Foxit PDF SDK for Web
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); });