Keep a pdf form editable after filling it with pdftk

不羁的心 提交于 2019-11-29 14:49:06

No. AFAIK for a PDF to be editable in Adobe Reader it has to be digitally signed by Adobe Acrobat. Obviously manipulating a PDF with pdftk changes the PDF so the signature is no longer valid.

To get rid of the Adobe digital signuture, just "cat" the signature out of the PDF.

pdftk signed.pdf cat output notsigned.pdf

I had a pdf document that would generate this error whether or not I would use the "flatten" command when adding the form data.

I loaded the pdf document into Adobe Acrobat (version 9, don't know if that's relevant) and selected File | Save a Copy. With the new copy I was able to use pdftk to add form fields without the error.

Using flatten would produce text. Without flatten I got an editable form in Adobe Reader with data filled in.

Sathya

Removing flatten will make the form editable.

With flatten Only one input PDF can be given, and it just flattens the output pdf file which makes it uneditable.

syntax :

For editable pdf as output - "passthru("<dir> $pdf_fill $fdf output - "); "

With flatten - passthru("<dir> $pdf_fill $fdf output - flatten ");

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!