PDF XFA File convert to "normal" PDF file

Unomagan picture Unomagan · Jan 31, 2014 · Viewed 9.2k times · Source

I´m searching for a way to convert PDF XFA files to normal PDF files which could be than processed and / or compressed via Imagemagick or ghostscript for example. All options I found are just removing the the XFA tags resulting in an empty file.

One way would be to use Adobe acrobat reader and print the file via virtual printer. But that is not an acceptable option on an server.

IText is also out of option because it is too expensive for what we need. Anyone got an idea or have a better way?

Answer

jrodenhi picture jrodenhi · Jan 20, 2015

I have been able to convert forms created with XFA features using a free toolkit from PDFLabs called PDFtk. The interface is not quite as intuitive as I would hope but it does get the job done.

Also, Debenu has a product called the Quick PDF Library. I have not tried its function called RemoveXFAEntries but I think that will do what you want also. I am thinking about writing a utility to just encapsulate this feature to make my job easier.