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