# pdftotext is a command line program that converts PDF files into text files # first get the pdftotext installer package from http://www.bluem.net/downloads/pdftotext_en/ # pdftotext code written by Glyph & Cog, LLC: http://www.glyphandcog.com/Xpdf.html which pdftotext # /usr/local/bin/pdftotext pdftotext -h pdftotext example.pdf pdftotext example.pdf example.txt pdftotext example.pdf - pdftotext -layout -eol unix -enc UTF-8 /path/to/file.pdf /path/to/file.txt