I am currently writing a script that fills a set of project data into given form-fields of template-PDFs and then saves those documents to a repository for further editing by project members (the documents have much more fields than those filled automatically).
The template-PDFs were previously created by me in Adobe InDesign and then saved with "Extended Features" in Adobe Acrobat Pro to make it editable in free Acrobat Reader and also pdfformfiller2.
This little java-wrapper for iText can fill PDF-Forms with utf8 text, which works pretty well with my script. The command I use is:
java -jar pdfformfiller.jar doc1_template.pdf -f text_input.txt doc1_filled.pdf
The problem is that after being filled with the data, pdfformfiller2 outputs a doc1_filled.pdf which is only editable in Adobe Acrobat Pro again. Because the script is intended to run automatically, I cannot save every single PDF with "Extended Features" again after they have been filled by the script. Is there any option or fix in the wrapper-code to fix this?
Btw. the option "-flatten" of pdfformfiller2 is disabled.