lundi 2 février 2015

In Adobe Acrobat Javascript, how do I search an entire PDF for all instances of amounts over 10,000?


I wrote this:



for (var p=0; p<this.numPages; p++) {
for (var n=0; n<this.getPageNumWords(p); n++) {
var w = this.getPageNthWord(p, n);
if (w >= 10000) {
console.println(w);
} else if (w <= -10000) {
console.println(w);
}

}
}


However, it keeps giving me this error when I run it:



SyntaxError: syntax error
1:Console:Exec
undefined


Does anyone know what I'm doing wrong?





Aucun commentaire:

Enregistrer un commentaire