Use pdftotext utility can be used to convert Portable Document Format (PDF) files to plain text.
$ sudo apt-get install poppler-utils
usage: $ pdftotext abc.pdf xyz.txt$ pdftotext -l 5 abc.pdf xyz.txt ( convert last 5 pages)$ pdftotext -f 5 abc.pdf xyz.txt (convert first 5 pages)$ pdftotext -upw 'password' abc.pdf xyz.txt ( for password protected pdf)
Saturday, November 15, 2008
Howto Convert PDF to TXT in Ubuntu Linux
Posted by panayara at 9:22 AM
Subscribe to:
Post Comments (Atom)



Stumble It!


10 Comments:
Nice and useful thanks :D
sauch a way how I can convert text to pdf files..
thanks..
Siva
such a way how I can convert text to pdf files..
thanks..
Siva
thanks
Faber
dont work for me. it gave out text file with two matrixlike characters
Thank you so much.
How about converting many PDFs into one single text?
Thanks a lot - at least something to fresh up my old brain :-) didn't remember the right command.
@liaofan:
how about appending to the same file with a simple loop. well, assumed the pdf files are in the same directory.
for i in 1.pdf 2.pdf 3.pdf
do
pdftotext $i - >> out.txt
done
Thanks a lot...........
Very useful.........
Thanks a lot...........
Very much useful..........
Pardeep
Thanks a lot.........
Post a Comment