MPDF创建只读pdf文件? [英] MPDF create read only pdf file?

查看:80
本文介绍了MPDF创建只读pdf文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用mpdf下载这样的现有文件-

I'm using mpdf to download an existing file like this-

$mpdf->Output('my_filename.pdf','D'); 

我需要下载的文件为只读.现在,下载的文件可以用文字打开并进行编辑,我希望避免这种情况.

I need the file downloaded to be read only. Right now the downloaded files can be opened in word and edited, I wish to avoid that.

TL; DR :我正在从系统中下载一个现有文件,我的客户可以通过打开文字来进行编辑,因此需要避免这种情况.我无法为文件设置密码保护(客户要求)

TL;DR : I'm downloading an existing file from my system which my clients can edit by opening in word, need to avoid that.I can't have password protection for the files(client requirement)

推荐答案

使用 SetProtection()函数,如 查看全文

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