Ubuntu – Getting the word count of a pdf document in Evince

evincepdf

Is there any way I can get the word count of a PDF document that I'm viewing in Evince, Ubuntu's default pdf viewer? I'm able to convert the documents to text files and get the word count from the terminal, but I'd quite like to be able to quickly get at them without having to use the terminal. Is there any plugin that can do this, or is it already built in and I'm just missing it?

P.S. I'd prefer not to change my viewer as Evince is the default PDF viewer in Ubuntu, and I'd quite like to do as much as possible using the default applications since a lot of them, Evince included, are really nice.

Best Answer

You can do this via command line:

pdftotext filename.pdf - | tr -d '.' | wc -w