bassemreda

Console pdf Viewer

In Linux on March 6, 2009 at 12:05 am

How to open a pdf file from your console in Linux:

As far as I know there is no console based pdf viewer, but you can use the following trick to open a pdf file:

I’m using a Red Hat Fedora 10,

First of all install pdftohtml- a command line tool to convert pdf files into html and to other formates.

#sudo yum install pdftohtml

Next install lynx which is a command line html viewer.

#sudo yum install lynx.i386

Next convert the file you want to view into html using:

#pdftohtml ch.01.pdf

Next open the file you want to view using lynx:

#lynx ch.o1.html

You can also convert a pdf to text using pdftotext, which is a command-line tool to convert pdf files into text files.

#pdftotext ch01.pdf

You can then open the text file using vim:

#vim ch01.txt


About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: