Word count of a pdf in mac terminal
Cheeky tip from http://hints.macworld.com/article.php?story=20051129125931187 comments for counting words in a pdf document. Very handy for working with LaTeX where you only see the full document without tags as a pdf. (I think the ps2ascii command only comes with LaTeX, actually).
In terminal, type:
ps2ascii myFile.pdf | wc -w
and you’re done.
Excellent!