搜尋 Mozilla 技術支援網站

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

Learn More

Customize printer button behaviors in built-in PDF viewer

  • 2 回覆
  • 1 有這個問題
  • 162 次檢視
  • 最近回覆由 jenkincs

more options

Hello, Is it possible to customize the printer button behaviors in built-in PDF viewer by using javascript or any other...? When user click view button on my page, my app will open the pdf file with watermark within built-in PDF viewer. When user click the printer button in built-in PDF viewer, I need to execute some code to get the unwatermark pdf file and print the pdf. Is it possible to do that? thanks for your help!!!!

Hello, Is it possible to customize the printer button behaviors in built-in PDF viewer by using javascript or any other...? When user click view button on my page, my app will open the pdf file with watermark within built-in PDF viewer. When user click the printer button in built-in PDF viewer, I need to execute some code to get the unwatermark pdf file and print the pdf. Is it possible to do that? thanks for your help!!!!

被選擇的解決方法

You can't modify the built-in PDF viewer, but you can install the web app version of the PDF viewer on your web server and modify it to your liking. Then you can serve PDFs through your viewer instead of directly to Firefox.

從原來的回覆中察看解決方案 👍 1

所有回覆 (2)

more options

選擇的解決方法

You can't modify the built-in PDF viewer, but you can install the web app version of the PDF viewer on your web server and modify it to your liking. Then you can serve PDFs through your viewer instead of directly to Firefox.

more options

@jscher2000, Thank you very much for your reply! I will try it right now. Thanks!