Foxit PDF SDK for Web

How to Disable Downloads with Foxit PDF SDK for Web

Disabling the download function applies to both the UI and API. This can be achieved by using the option with PDFViewer::constructor getAdditionalPerm:function() as below:

return 0; //zero means disable

Once set, the Download menu will be grayed out in the UI menu list, and the API calling to get the file will see a permission error as shown below:

Updated on August 16, 2021

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