Hi,
I am an Adobe Acrobat 8.1.3 Professional user, new to Javascript.
I am extracting K1s from a single large file, which I have been able to do via a batch process. I would like to extract the name of each individual, which is in a specific location on each K1, and set it as as part of the filename on that individual's extracted K1.
Through internet searches and purusing the Adobe Reference and Developers handbooks, I have been able to find the coordinates of the name using getPageNthWordQuads() and so on, but am stuck as to how I then use these coordinates to extract any information.
Can anyone offer some help? I'd appreciate any tips I can get.
Thanks
1) If there is a known location on the page for a particular piece of data, then you'd look for quads that fit into that location, then extract the words associated with those quads.
2) if a particular piece of data is associated with a keyword, for example "Invoice Number", then you'd look for that key word, then use the quads for that keyword to build a search location for the actual data. Then go back and search for quads that meet that criteria.
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]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script