pdfformfiller2 填写后无法编辑 PDF 表单
PDF form not editable after being filled by pdfformfiller2
我目前正在编写一个脚本,将一组项目数据填充到模板 PDF 的给定表单字段中,然后将这些文档保存到存储库中以供项目成员进一步编辑(文档的字段比那些多得多)自动填充)。
模板 PDF 是我之前在 Adobe InDesign 中创建的,然后在 Adobe Acrobat Pro 中使用 "Extended Features" 保存,使其可以在免费 Acrobat Reader 和 pdfformfiller2 中编辑。
这个用于 iText 的小 java-wrapper 可以用 utf8 文本填充 PDF 表单,这与我的脚本配合得很好。我使用的命令是:
java -jar pdfformfiller.jar doc1_template.pdf -f text_input.txt doc1_filled.pdf
问题是pdfformfiller2填完数据后又输出了一个doc1_filled.pdf,只能在Adobe Acrobat Pro中编辑。因为该脚本旨在自动 运行,所以我无法在脚本填充后再次保存每个带有 "Extended Features" 的 PDF。包装代码中是否有任何选项或修复程序来解决这个问题?
顺便说一句。 pdfformfiller2 的“-flatten”选项被禁用。
pdfformfiller2 does not fill-in forms using an incremental update. Thus, it automatically breaks any signatures present in the PDF. (For backgrounds cf. this answer关于信息安全。)
一种特殊类型的签名,使用权签名,是用于授予 "Extended Features" 的机制。因此,正如观察到的那样,pdfformfiller2 打破了 "Extended Features".
您可以尝试在替换后重新编译 pdfformfiller2
new PdfStamper(reader, os, '[=10=]')
来自
new PdfStamper(reader, os, '[=11=]', true)
利用增量更新。 (对于背景,请参见 this answer;在 附加模式 中,iText PdfStamper
生成增量更新。iText 是 pdfformfiller2 使用的 PDF 库。)
我目前正在编写一个脚本,将一组项目数据填充到模板 PDF 的给定表单字段中,然后将这些文档保存到存储库中以供项目成员进一步编辑(文档的字段比那些多得多)自动填充)。
模板 PDF 是我之前在 Adobe InDesign 中创建的,然后在 Adobe Acrobat Pro 中使用 "Extended Features" 保存,使其可以在免费 Acrobat Reader 和 pdfformfiller2 中编辑。
这个用于 iText 的小 java-wrapper 可以用 utf8 文本填充 PDF 表单,这与我的脚本配合得很好。我使用的命令是:
java -jar pdfformfiller.jar doc1_template.pdf -f text_input.txt doc1_filled.pdf
问题是pdfformfiller2填完数据后又输出了一个doc1_filled.pdf,只能在Adobe Acrobat Pro中编辑。因为该脚本旨在自动 运行,所以我无法在脚本填充后再次保存每个带有 "Extended Features" 的 PDF。包装代码中是否有任何选项或修复程序来解决这个问题?
顺便说一句。 pdfformfiller2 的“-flatten”选项被禁用。
pdfformfiller2 does not fill-in forms using an incremental update. Thus, it automatically breaks any signatures present in the PDF. (For backgrounds cf. this answer关于信息安全。)
一种特殊类型的签名,使用权签名,是用于授予 "Extended Features" 的机制。因此,正如观察到的那样,pdfformfiller2 打破了 "Extended Features".
您可以尝试在替换后重新编译 pdfformfiller2
new PdfStamper(reader, os, '[=10=]')
来自
new PdfStamper(reader, os, '[=11=]', true)
利用增量更新。 (对于背景,请参见 this answer;在 附加模式 中,iText PdfStamper
生成增量更新。iText 是 pdfformfiller2 使用的 PDF 库。)