Hi, I know this might be a few years later since you posted the above, but I'd like to know if you ever got a solution to the above question?
Any help would be much appreciated.
You can import XFDF data. XFDF is an XML schema, you would need to use XSLT or another method to transform to the required format.
Thanks for your quick response. I'm fairly new in Acroforms, I've worked with LCD whereby it uses Java or Web Service API to merge/populate PDF with XML. Would I have to use the same approach?
And could you kindly forward me links that would steer me in the right direction with regards to XFDF and Acroforms.
Is this for serving from a web server?
(a) a way of providing a filled in PDF in response to some kind of request (not necessarily a PDF)?
(b) a way of returning data to fill in the form already open for the user?
(c) something else?
it is (a).
Here's a scenario. A user enters username and an application will search for the customer details in the database. Once it successfully retrieves the data the application will generate a file, i.e. XML, which will be used to populate a PDF template, or use iText to populate the PDF template with data from the database.
hoping my explanation is clear.
Generating a completed PDF is more reliable of course, since not every PDF viewer will work with XFDF files. If using XFDF, the basic principle is that you
* generate the XML for the XFDF
* in the XML include all the form field values to fill
* in the XML include the URL of the PDF file
* serve the XFDF with suitable content type
* the browser sees the content type and invokes the user agent (e.g Adobe Reader)
* the user agent sees the XFDF and reads it, looking for the URL
* the user agent opens the PDF at the URL and fills it
You can export XFDF files from Acrobat to get a start in seeing what they look like.
Thank you for your explanation, I will implement what you've mentioned and post my findings/outcome.
You have been great help. Thanks
After much research, I manage to find a way to merge/import xfdf with acroform pdf template. There are two ways I came across that will give you the mentioned results
I did, a not so small project, to achieve the import xfdf with pdf outcome. jPDFFields was quite quick, but the output of the pdf has advertising of the company that developed the api. I'll be investigating further to see if I can tweak the source code to suit my needs.