ps2ascii myfile.pdf | wc -w
, where myfile.pdf is the name of the PDF, of which you want to count the words. Of course you can also use all the other options of the wc
command (such as counting characters, etc.).Via macosxhints (second comment by kalderon).