I'm attempting to automatically create multiple PDF files with pre-populated form fields based on data from an Excel workbook. From various posts in these forums, I've successfully:
1. Created a PDF Form with all of the desired fields using the Acrobat Forms Tools (not Designer).
2. Created multiple XFDF files from Excel that can be imported manually using the "Form Data\Import Data to Form" menu options. I'm also able to just double-click the xfdf files from File Explorer and populate the PDF Form.
What I'd like to do next is automate the Open, Import, Save process since I have hundreds of files to create. I've attempted to use a javascript in batch processing (this.importAnXFDF), but it doesn't seem to want to function on xfdf files directly.
Am I on the right track? Is there a better way to create pre-populated PDF files from an external data source in an automated fashion?
Appreciate any help/suggestions. This forum is excellent.
Acrobat will import data directly from an Excel spreadsheet using the ADBC object or from a tab delimited file that can be exported from Excel. Here's a thread that covers this exact issue.
http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=23596
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