Step 1: Start Javascript console by pressing Ctrl + J (on Windows) or Command + J (on Mac OS)
Then you will have Javascript Debugger windows opened.
Step 2: In the text box below View:Console
You type in (or copy, paste) the following codes
var cnt=0;
for (var p = 0; p < this.numPages; p++) cnt += getPageNumWords(p);
app.alert("There are " + cnt + " words in this file.");
Then you will have a alert windows tells you how many words in your documents.
Have fun.
Lam Hoang
No comments:
Post a Comment