LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Open PDF using command (https://www.linuxquestions.org/questions/linux-general-1/open-pdf-using-command-464235/)

pro_chandan 07-15-2006 04:50 AM

Open PDF using command
 
Hi Friend's

I want to open PDF file using command in terminal "not in GUI"

Is there possibility to open PDF file in text mode on terminal??

Chandan K.

Theorist 07-15-2006 06:14 AM

Hi pro_chandan,
One way of opening .PDF files in text mode, is to use the command line utilities like pdftotext or pdftohtml.

Quote:

$ pdftohtml file_name.pdf file_name.html
Then use a command line browser like elinks or lynx.
Or,
Quote:

$ pdftotext file_name.pdf file_name.txt
Then use any text editors to view. But if the .PDF file has images then nothing can be done about that, using pdftotext.

With Regards,
Theorist

pro_chandan 07-16-2006 12:10 AM

Hi Theorist,

That did not work. Anyway, thanks for help..

Matir 07-16-2006 12:14 AM

What happens when you try to use those commands? Detailing why it did not work will better allow members to continue to provide help to your question.

firstfire 07-16-2006 05:35 PM

Hello, pro_chandan !
I browse software on my laptop (with `man -k framebuf') and find program for viewing PostScript/PDF files in console via framebuffer (actually this is a shell script which prepare tiff-images for `fbi' -- console image viewer).
Try this:
Code:

fbgs -d /dev/fb0 file.ps
If it doesn't work and `fbgs' and `fbi' exists on your disk, then, maybe, your framebuffer device isn't properly installed/configured. Check your kernel configuration.

Hope, this is useful!


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