开发者

How to disable "AllowPrinting" for PDF generated in cfreport/cfdocument?

开发者 https://www.devze.com 2023-02-19 21:45 出处:网络
The business requirement says that the PDF cannot be printed. I looked up the doc of cfreport, and it says for format=\"pdf\", there is a permissions attribute that I can set to a list of permissions

The business requirement says that the PDF cannot be printed.

I looked up the doc of cfreport, and it says for format="pdf", there is a permissions attribute that I can set to a list of permissions including AllowPrinting.

However, setting permissions="" does not take away the printing permission. I checked by Right Cick on Adobe Reader browser plugin -> Document Property -> Sec开发者_Python百科urity, it says Printing: Allowed"

How do I disable printing? Thanks.


Found out in the doc of CFPDF that encryption attribute must be set before it respects permissions attribute!

0

精彩评论

暂无评论...
验证码 换一张
取 消