up vote 2 down vote favorite
share [g+] share [fb]

I was just wondering if there is a way to display content of a pdf file inside terminal, you know just like doing 'less file.txt' but with pdf files.

link|improve this question
1  
not programming related, belongs on superuser.com. try googling for "xpdf". – ax. Oct 17 '09 at 15:12
Good question (I like to know the answer) but not programming related, belongs on SU – DVK Oct 17 '09 at 15:43
feedback

migrated from stackoverflow.com Oct 17 '09 at 22:13

This question came from our site for professional and enthusiast programmers.

3 Answers

The program pdftotext, which comes as a part of xpdf, can convert a PDF to text. There is also a program called lesspipe, which can be set as a preprocessor for less so that if you have pdftotext or something like it installed, you can just use less with PDF (and many other types of files).

link|improve this answer
feedback

There are tools that allow to extract text from pdf files (google for it) but IMHO there are cases where this will simply be no possible (imagine a pdf that contains only images).

link|improve this answer
feedback

pdftotext should work for this

link|improve this answer
feedback

Your Answer

 
or
required, but never shown