These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Word count for .PDFs?

bsimmons
Registered: Jul 27 2006
Posts: 1

Hello fellow Acrobat users,

Is there any way I can use Acrobat to do a word count of a .PDF file?

-Brad Simmons

gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
You can use Acrobat JavaScript. Once you have opened the JavaScript debugging console, enter the following script:

var cnt=0;
for (var p = 0; p < this.numPages; p++)
cnt += getPageNumWords(p);
console.println("There are " + cnt + " words in this doc.");

Highlight the entire script, hold down the "Ctrl" key and press the keypad's enter key and wait.

George Kaiser

chrisland5
Registered: Jun 3 2011
Posts: 1
Dear George,
I too would like to do a word count in a PDF document: how do I open the "JavaScript debugging console"? Thanks in advance.
Christian Landrein
christian [dot] landrein [at] gmail [dot] com

Christian Landrein

try67
Expert
Registered: Oct 30 2008
Posts: 2398
Ctrl+J will open the console.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

Merlin
Acrobat 9ExpertTeam
Registered: Mar 1 2006
Posts: 766
Hi,

using my free abracadabraTools should be easier !
http://abracadabrapdf.net/articles.php?lng=fr&pg=717