Installing Pdftotext to Redhat/rhel/fedora/centos/ubuntu
Install Pdftotext (CentOS) in a different Linux distribution version using the Poppler-utils package:
# yum Install Poppler-utils
or use the following command in Debian/ubuntu:
$ sudo apt-get install Poppler-utils
Pdftotext using syntax
Pdftotext {pdf-file} {Text-file}
How do I convert a PDF to text?
Convert Php-manual.pdf to Php-manual.txt:
$ pdftotext php-manual.pdf Php-manual.txt
Only the first 5 and next 10 pages are converted:
$ pdftotext-f 5-l php-manual.pdf php-manual.txt
Convert encrypted PDF files (owner password):
$ Pdftotext-opw ' password ' php-manual.pdf php-manual.txt
Convert encrypted PDF files (user password):
$ Pdftotext-upw ' password ' php-manual.pdf php-manual.txt
Sets the End-of-line convention to use for text output. You can set it to UNIX, DOS or Mac. For Unix/linux OSes, enter:
$ pdftotext-eol Unix Php-manual.pdf Php-manual.txt
Original: http://www.icultivator.com/p/8744.html
Convert PDF files to text format in Pdftotext--linux/unix