I created forms with Adobe LiveCycle Desiger. This way I can import XML data into a PDF template using iText. However, many PDF veiwers don't support these type of dynamic PDF files.
I'm looking for a solution to convert ("flatten") these dynamic forms (also known as XFA forms) to static PDFs using an PDFBox(open source Java library)
The solution I have so far, is to open the form in Adobe Reader and to "print to PDF". This creates a regular flat PDF, but it's a manual operation on the desktop. I want an automated solution on the server side.