Get PDF Word Count In Linux

Quick easy way to get the word count of a pdf.

# pdfwc.sh
# usage ./pdfwc.sh filename.pdf
#
TMPFILE=___tmpfile.tmp
pdftotext $1 $TMPFILE
wc $TMPFILE -w
rm $TMPFILE

Related Posts: