Use Java/iText or alternative to create an exact copy of a XFA PDF
- Status Completed
- Budget $30 - $250 USD
- Total Bids 7
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.Get free quotes for a project like this
Looking to make some money?
- Set your budget and the timeframe
- Outline your proposal
- Get paid for your work
Hire Freelancers who also bid on this project
Looking for work?
Work on projects like this and make money from home!Sign Up Now
- The New York Times
- Wall Street Journal
- Times Online