The getPageNumWords method has a non-optional parameter, the page number...
lol....ok you just talked over my head. Could you tell me how to fix it?
If you want to process just the current page, change this line:
var mvNumWords = this.getPageNumWords();
var mvNumWords = this.getPageNumWords(page);
However, there are more problems with your code, that someone with scripting know-how will need to solve for you. For example, why the loop over all the pages if you're only processing the current page?
OK thank you for the reply. I am wanting it to process all of the pages in the document. I will continue to work at it. Thank you again