免费的在线文件 (pdf) 查看器
为了让用户在线查看文件 (pdf) 而无需选择以任何方式下载这些文件,最好的免费资源是什么?
Flexpaper 可能是一个解决方案,但这里说那:
本质上,FlexPaper 不保护 PDF 不被打印或 复制的。它实际上缺乏在 JavaScript 上执行此操作的选项 前端。然而,在其商业许可证中(采取品牌 off 对于 1 个域)包含一个 ReadOnly 参数来禁用打印和 复制。
注意:我想使用 php 来编写脚本。
What is the best free resource to use for the purpose of letting users view files (pdf) online without any option for them to download those files in any way?
Flexpaper could be a solution but it is said here that:
Natively, FlexPaper does not protect PDFs from being printed or
copied. It actually lacks options for doing so on the JavaScript
front-end. However in its Commercial License (to take the branding
off for 1 domain) contains a ReadOnly parameter to disable printing &
copying.
N.B: I want to use php for scripting purpose.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
任何可以在线查看的内容都无法防止被盗或被打印。如果您的材料不得以您不希望的方式使用,您必须首先承认这是一个不可能的目标,然后使用某种形式的法律保护,例如在交付该材料之前签署保密协议。
Nothing that can be viewed online can be prevented from being stolen or printed. If your material must not be used in ways you do not wish, you must first accept that this is an impossible goal, and second use some form of legal protection such as a signed non-disclosure agreement prior to delivery of this material.
我是您链接到的博客的作者。在本文中,我提供了 FlexPaper 的编译版本,其中 readonly 选项设置为 true。
这将为试图下载或打印它们的人提供威慑。
就像其他人在这里所说的那样,只要您能够控制查看 PDF 的环境(您的计算机),就没有真正的保护。
这里再次提供链接:使用 FlexPaper 保护 PDF
I am the author of the blog that you linked to. In the article I provide a compiled version of FlexPaper with the readonly option set to true.
This will provide a deterrent to people trying to download or print them.
Like others have said here, there is no true protection as long as you have control over the environment (your computer) that your viewing the PDF in.
Here is the link again: Protecting PDFs using FlexPaper
也许最好的选择是在服务器上使用 PDF 渲染器并以 PNG 或 JPEG 形式提供页面。当然,anyona 可以根据某些 PDF 重新编译 PDF,但它们会丢失分辨率、链接、可缩放图形/字体等。
在客户端上呈现的任何内容(位图、HTML、PDF)都可以轻松破解,您对此无能为力。
Perhaps the best option is to use a PDF renderer on the server and supply the pages as PNGs or JPEGs. Naturally anyona can recompile a PDF based upon some PDFs but they will lose resolution, links, scalable graphic/fonts etc.
Anything that renders on the client (bitmaps, HTML, PDFs) can be easily ripped, nothing you can do about it.