 <p>I need to do something like that, but When I try to execute this code it stops with an error</p> <pre><code>Run-time Error 91 : Object variable or With block variable not set. </code></pre> <p>And the error is in those lines:</p> <pre><code>iTotalWords = wordHilite.getNumText iTotalWords = PDFJScriptObj.getPageNumWords(Nthpage) </code></pre>