If this is a fillable PDF then getting the data is a simple line of JavaScript code. If it's a generated document, from quickbooks for example, then this becomes much more difficult. Use the "doc.getPageNthWord()" function to search words on each page. The tricky part is figuring out which one is the invoice number. If it's a scanned PDF, then you have to do OCR first and hope everything translates well.
Once you have the data, getting it into an external DB is not straight forward. There are two things in Acrobat JS that might help, the "ADBC" object and the "doc.exportAsText()" function.
Alternativily, you can use the text select tool to manually copy and paste the data into a file.
Once you have the data, getting it into an external DB is not straight forward. There are two things in Acrobat JS that might help, the "ADBC" object and the "doc.exportAsText()" function.
Alternativily, you can use the text select tool to manually copy and paste the data into a file.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script