[英]Why doesn't Preview on Mac respect the “read only” flag in PDF files?
I'm working on a django project using pdfrw to fill a fillable pdf form.我正在使用 pdfrw 处理 django 项目来填写可填写的 pdf 表格。
I'm setting the Ff = 1
flag in order to make the fields read-only.我正在设置
Ff = 1
标志以使字段只读。
for annotation in template_path.Root.AcroForm.Fields:
# the code goes here
annotation.update(pdfrw.PdfDict(Ff=1))
This seems to work in every viewer I tested so far except for "Preview" the native mac app to open and display pdf files.到目前为止,这似乎在我测试的每个查看器中都有效,除了“预览”本机 mac 应用程序以打开和显示 pdf 文件。
Why is that?这是为什么? Am I missing something?
我错过了什么吗? Is there another way of achieving this?
还有另一种方法可以实现这一目标吗?
You are not missing anything.你没有错过任何东西。
Preview.app is POISON for fillable forms. Preview.app 是可填充 forms 的毒药。 This piece of s**tware must be avoided at all price in connection with forms.
必须不惜一切代价避免与 forms 相关的这种软件。
Workaround: have your users use something useful, such as Adobe Acrobat (Reader).解决方法:让您的用户使用一些有用的东西,例如 Adobe Acrobat (Reader)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.