搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Secured PDF in Browser

more options

I post Secured PDF on our website. These PDFs should not be able to print. When I use other browsers I am not able to print the PDF, but on Firefox I am able to print. I was even able to print to PDF. This is a security issue. How can this be resolved?

I post Secured PDF on our website. These PDFs should not be able to print. When I use other browsers I am not able to print the PDF, but on Firefox I am able to print. I was even able to print to PDF. This is a security issue. How can this be resolved?

所有回覆 (5)

more options

juliana said

I post Secured PDF on our website. These PDFs should not be able to print. When I use other browsers I am not able to print the PDF, but on Firefox I am able to print. I was even able to print to PDF. This is a security issue. How can this be resolved?
more options

In Firefox it's under the preference pdfjs.enablePermissions which defaults to false. You can switch it to true in about:config to enable restrictions.

more options

Hi TyDraniu. Thank you for the information. I just have one questions for now, when I make the switch, this would only be applied to my computer, or can it change the settings for anyone who sees that PDF in firefox?

more options

It's only for you.

Enterprises managing Firefox with use of policy templates can also configure their all Firefox instances with a dedicated policy.

more options

Hi Juli, unlike a password to open a PDF, the copy/print/etc. permissions are on the honor system. It may be impossible to completely prevent printing by determined users, but to exercise more control, you can host your own PDF viewer customized to your needs. You've probably noticed these on other sites, and the basic code of the viewer built into Firefox can be installed on your site and run as a web application: https://github.com/mozilla/pdf.js/wiki/Setup-pdf.js-in-a-website