You have chosen to sponsor your bid up to a maximum amount of .
We took the BCTR.pdf file from FinCEN Financial Crimes Enforcement Network and tried to re-create it with all of its extended features.
File BCTR.pdf is attached.
The idea is that we will fill in the form by updating the XML, then create the new PDF file from that XML.
Because it is free, we used iText, and followed this book:
Our Java program, PDFServlet.java is attached.
Starting on page 266 of his iText in Action book,
Bruno Lowagie explains that iText does not really support populating XFA forms.
This was my experience when I tried his code on page 264.
However, on page 269, he offers code for creating a PDF directly from the XML.
We implemented that code in our program PDFServlet.java.
The original PDF has features such as validation, sign with pin, and save and submit.
When opening the newly created PDF which is created by our code attached,
these features are gone and I get the following error:
"This document enabled extended features in Adobe Reader. The document has
been changed since it was created and use of extended features is no longer
available. Please contact the author for the original version of this document."
Our goal is to be able to read the BCTR.pdf file (XFA format) into an XML file, write xml parsing code that will
insert data into the form fields, then create a new pdf file that still has all of the original BCTR.pdf file's extended features.
However, if this cannot be done in Java, we need to know if there is alternative way of filling in the form, so that we
don't waste any more time with this approach.