We took the [url removed, login to view] file from FinCEN Financial Crimes Enforcement Network and tried to re-create it with all of its extended features.
File [url removed, login to view] 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:
[url removed, login to view]
Our Java program, [url removed, login to view] 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 [url removed, login to view] 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 [url removed, login to view] 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.
7 freelancers are bidding on average $345 for this job
Hello, I'm a Java, J2EE application developer with over 10 years experience. I'm very happy to work for you. Contact me if you are interested. Thanks, Rick