++Adding to this old thread, here's an workaround observation that turned out to work for me in both Acrobat Reader DC and partially in Adobe Reader mobile app, and a third party mobile PDF viewer.
Adobe Acrobat Reader mobile app doesn't have word count and neither does Acrobat Reader DC.
However, the following method proved to be useful:
with Acrobat Pro DC you can create a single blank PDF page, and place a button with a javascript action to perform a word count.
Download the PDF with the button script to your mobile device via USB cable, or get the PDF with the action button from here: Word Count Action Script Button
And all you have to do is open Acrobat Reader Mobile and merge or combine this PDF with whatever document you want to perform the word count with. You can do the same with Adobe Reader DC
See slides below.
With your main document opened select combine files and add the PDF with the button script that I've shared above
Select Combine to merge both PDFs.
When you open your combined PDF file click on the action script button to get the wordcount of your merged PDF document.
Below, selecting Organize Pages tool to see the final result of the merged documents :
NOTE: Be advised that the wordcount script might not be entirely accurate since the total word count seems to vary from app to app.
For example, in Adobe Reader DC the script will count all of the form field objects (like text form fields, drop down menus, and even the event button objects with a label) even if they're blank, and then include in the word count total all of these form field object plus the real count of the text words that were found throughout the PDF.
Curiously enough, in a third-party appp like Foxit, it is able to count the exact words that are in the PDF.
For some reason I haven't been able to have the script to work in Adobe Reader mobile app, but the Adobe Reader app does allow me to merge two or more documents with the PDF that has the script.
On the other hand, the third party mobile app doesn't provides me with a merging capability (that I know of) but the script executed and worked fine in this third party app after it was merged with the Adobe Adobe Reader mobile app.
Here is the script originally posted by Dave Merchant:
var cnt=0;
for (var p = 0; p < this.numPages; p++) cnt += getPageNumWords(p);
app.alert("There are " + cnt + " words in this file.");
There are many software or online word counter tools are available on the Google to count the words. It's the really the very tough task if you count one by one. To count the word with in the PDF file
Just select all the content.
Copy and paste it into the word document.
Go to formatting section and hit the word count option and the total number of the words will be displayed.
I have used the below JavaScript, and it works well. But does anyone know, if it is possible to make a JavaScript that instead of counting words, counts characters including spaces?
var cnt=0;
for (var p = 0; p < this.numPages; p++) cnt += getPageNumWords(p);
console.println("There are " + cnt + " words in this file.");
You could write a script that looped through the words, got the number of characters in each one, and added together. You can't get spaces or punctuation, the spaces often aren't even there (just gaps). You could add 1 for each word, which would be approximate but not (for example) a solid basis for payment.
For example, Acrobat splits hyphenated words into two, so "right-handed" will count as two words, while Word counts it as one. If you can share a sample file that demonstrates this issue we can look more closely into it, but if Word behaves the way you're looking for, just export the PDF to Word and do the count there. That's the easiest solution.