1. Home
  2. Foxit PDF SDK for Web
  3. How to Disable Downloads with 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 May 12, 2020

Was this article helpful?

Related Articles

Ready to try Foxit PDF SDK?
Click the link below to download your trial
Free Trial