Keep a pdf form editable after filling it with pdftk
Asked Answered
D

4

6

I'm using pdftk to fill a form but the output form isn't editable, when I open it on acrobat reader I'm getting an error message: "This document enabled extended features in Adobe Reader, The document has been changes since it was created and use of extended features is no longer available."

is it possible to keep the document editable?

Doug answered 23/5, 2012 at 19:36 Comment(1)
Remove the 'flatten' flag and it should still be editable. I just successfully did a form_fill with a fdf file and it didn't break anything in the pdf.Baseman
F
10

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

pdftk signed.pdf cat output notsigned.pdf
Flocculus answered 15/7, 2015 at 10:33 Comment(1)
This not only removed the "extended features" message for me for PDFs that are being processed using pdftk's fill_field, but it also fixed an issue with some of those filled PDFs showing up blank in Acrobat Pro. Furthermore, the PDFs seem to be playing nicer with Preview (e.g. preview is not auto-resizing those fields) bringing its rendering in line with that of the official Adobe products.IMO this should be the accepted answer.Portal
C
7

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.

Churchwoman answered 24/5, 2012 at 9:33 Comment(1)
Acknowledging that this question and answer are now five and a half years old, things seem to have changed since this answer was given. It is now possible to maintain a PDF's editability status using pdftk - see Marco's answer.Portal
S
0

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.

Sik answered 14/12, 2013 at 1:7 Comment(0)
W
-1

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 ");

War answered 27/7, 2012 at 14:51 Comment(2)
Removing the flatten attribute will not make the output file editable in Acrobat ReaderYorgos
above comment is true as per my testing by removing the flatten attributeDisbar

© 2022 - 2024 — McMap. All rights reserved.