My scenario is pretty straightforward however I failed to find a solution for it.
I have a livecycle designer form which I need to filled in.
After some consideration, we have figured out that the best way to fill in this form is through xml data.
Based on data in database, I managed to generate the xml file. The problem is how do I import into the pdf in batch? I have thousands of xml file generated, and each of them need to be saved into a pdf file respectively and I will need to keep the pdf file.
On top of that, the pdf form is rights enabled form which after I import the data I would like to maintain the rights enabled property. This is so that when I send my file to customer, customer is able to export xml from the pdf file.
Help is really appreciated I have been struggling on this for weeks now.
But you can import XML data with:
xfa.host.importData();
However, this function is heavily restricted. Read about it in the XFA Object Reference.
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script