[email protected]$ sudo apt-get install poppler-utilsNow you are ready to convert the pdf files. Convert a file myfile.pdf to myfile.txt:
[email protected]$ pdftotext myfile.pdf myfile.txtYou can also omit the last parameter:
[email protected]$ pdftotext myfile.pdfand pdftotext should be smart enough to figure out the new file name is myfile.txt by default. Specifies to convert from page 2 onwards:
[email protected]$ pdftotext -f 2 myfile.pdfSpecifies to convert up to page 3:
[email protected]$ pdftotext -l 3 myfile.pdfSet the end of line format to either unix, dos or mac:
[email protected]$ pdftotext -eol unix myfile.pdfTo see more help for pdftotext:
[email protected]$ man pdftotext