如何禁用cfreport / cfdocument中生成的PDF的“AllowPrinting”?

时间:2011-03-27 15:37:20

标签: coldfusion cfdocument cfreport

业务要求表示无法打印PDF。

我查找了doc of cfreport,并且对format="pdf"说,我可以将permissions属性设置为权限列表,包括AllowPrinting

但是,设置permissions=""不会取消打印权限。我在Adobe Reader浏览器插件上通过Right Cick进行了检查 - >文件属性 - >安全性,它说印刷:允许“

如何禁用打印?感谢。

1 个答案:

答案 0 :(得分:3)

CFPDF的文档中发现encryption属性必须在尊重permissions属性之前设置!

相关问题