Embed PDF while Removing Print / Save / Etc. .

时光总嘲笑我的痴心妄想 提交于 2019-12-13 20:40:40

问题


I'm trying to allow the user to view a PDF from a webpage, but disable them to download or print said PDF. I keep running into problems with flash or chromes built in PDF viewer. I've tried Iframe, normal embed, PDF security, adobeJS or w/e it's called but no luck.

Anybody have a universal suggestion on how I can get this to work?


回答1:


1a. You can not send content to a user that they won't be able to print, or save... The closest you can come, would be to show the equivalent content in Flash, and then they can only print the "visible" portion in the flash viewer.

1b. If it goes over the wire, it can be captured.

  1. What are you using to generate the PDFs? You should be able to do a "write-only" PDF, and YMMV even on that.



回答2:


After 8+ hours of trying many different approaches to the problem we ended up going with a paid option of Scribd which works in all browsers and looks decent enough for us to use. That is our solution.



来源:https://stackoverflow.com/questions/9949566/embed-pdf-while-removing-print-save-etc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!