Copy link to clipboard
Copied
Hi Acrobat users,
I need to finds all articles in any pdf document and highlight them as definite or indefinite.
I have written the source code, yet something is not working when I compile it.
Can you help me or clarify me where do I miss? Much appreciated for your time.
Am I making wrong in array or variable declaration?
Copy link to clipboard
Copied
Any error in the console? What is truArticlesdFunction?
Copy link to clipboard
Copied
Your indexes are off for the "Articles" array
Change the code to
{if (this.getpageNthWord(i,j) == Articles[0]
{var annot = this.addAnnot ({page: i, type: "Highlight", quads: this.getPageNthWordQuads(i,j), author: "Articles Script", contents: Articles[1]
The first index selects the list of articles or the list of article types. The second index selects the specific entry.