These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Workflow Improvement

Genworth
Registered: Mar 31 2007
Posts: 2

Hello - I'm trying create an automated pre-review to prevent the most basic of erros making it into review and comment workflow.
 
Within the insurance industry certain keywords, product names,etc, trigger mandatory disclosures/information to be included in the document. I'd like to have Adobe index and search submitted items for keywords, etc and produce a report of mandatory copy/text the submitter has not/should include in the item they are submitting. Think spell checker on steroids.
 
I have a very beginner level awareness of batch processing capabilities, etc in Acrobat. I'm not looking for text to be replaced, that would require too high level processing for tense, tone, etc. Just something that would tell the submitter "you used word(s) X. Have you included the following disclaimers, etc into your item?"
 
I'm hoping someone has written basic plug and play code/script along these lines.
 
Thanks for any direction or information you can provide.

My Product Information:
Acrobat Pro 7.0.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Scripts can be written to search for words in PDF, so yes, I think what you want can be done using the "doc.getPageNthWord()" function. This function grabs a single word from a PDF page. The words are not guarenteed to be in order so matching a phrase, for example, is much more difficult than matching single words. The simplest way to code this is to simply loop through all words on all pages, comparing the page words to all of your special matches. Like this: you can run the code from the console window.

for(var pg=0;pg

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script