LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   viewing pdf files (https://www.linuxquestions.org/questions/linux-newbie-8/viewing-pdf-files-886208/)

asifbasha 06-14-2011 03:45 AM

viewing pdf files
 
Hai to all,



my machine is fedora 15 with command mode login .every thing works fine . I am in a situation to read pdf files in command mode, without images also acceptable ...

My request is that how can i read pdf files(text only) in command mode .. without starting xserver ?

thanks in advance to all

arizonagroovejet 06-14-2011 03:53 AM

pdftotext might be of use.
Code:

$ pdftotext foo.pdf
will create foo.txt
Code:

$ pdftotext foo.pdf -
Will send the text to stdout so you could then do
Code:

$ pdftotext foo.pdf - | less


All times are GMT -5. The time now is 08:33 PM.