如何保护PDF文件免遭下载或复制 [英] How to protect PDF files from being downloaded or copied

查看:111
本文介绍了如何保护PDF文件免遭下载或复制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用PHP& amp;开发一个新网站. MySQL.

I'm developing a new website with PHP & MySQL.

该网站用于在线电子书图书馆,该图书馆根据付费订阅计划授予对其书籍的访问权限.

The website is for an online eBook library that grant access to its books based on paid subscription plans.

因此,我需要确保这些书的PDF文件受到良好的保护,并且不能保存,下载或以任何方式复制.

So, I need to make sure the PDF files of these books are well protected and can't be saved, downloaded, or in anyway copied.

我该怎么做?

推荐答案

我建议您将PDF转换为图像,并显示第一页,或者根据需要检查此库,这可能很有用 Imagemagick

I suggest you to convert the PDF into an image , and display the first page or as you like, check this library it can be useful Imagemagick

这篇关于如何保护PDF文件免遭下载或复制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆