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).
2 comments:
Thank you! This is the most direct way :)
Note that this method also counts other elements. In a test I ran, it counted the page number at the bottom of the page.
Post a Comment