Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-13-2003, 04:06 PM   #1
LQ Newbie
Registered: Jul 2003
Location: Warsaw
Distribution: Slackware 9.0
Posts: 11

Rep: Reputation: 0
Viewing PDF in console?

Hello All!

I'm a newbie to Linux as many of you.
My question is:
is it possible to view PDF files in console mode without the necessity to run X Window? Also I would like to know if it is possible to view images, play movies etc.

I'd be very grateful for any information.

Best regards,
Old 07-13-2003, 04:10 PM   #2
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
Yes, you will need X.

Old 07-13-2003, 04:20 PM   #3
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
I haven't gotten around to trying but there's zgv (I think that's what it's called) and others for viewing images. Lynx, w3m, links, others for surfing. Workbone for playing CDs. You can do most things without X. Not sure about your specifics, though. Check software sites with a 'console' filter, or something like, on your searches and you'll turn up some cool non-X apps. I mean, like I say, this doesn't help your question, but just to let you know there's whole world of non-X out there.
Old 07-13-2003, 04:23 PM   #4
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
The only way that I am sure of to view PDFs in console is to use "ps2ascii file.pdf > file.txt; less file.txt". That works only if the pdf has text, and you will not be able to view any images in the pdf.

As for your second question(s): I believe thet you can use mplayer in the console with framebuffer to view movies, and there are some programs that allow you to view images in the console, as well, but I do not know their names.

Old 07-13-2003, 04:35 PM   #5
LQ Newbie
Registered: Jul 2003
Location: Warsaw
Distribution: Slackware 9.0
Posts: 11

Original Poster
Rep: Reputation: 0
Hi again!

Maybe I should've done that before I posted my message, but I'm after a long day's work and it just didn't cross my mind... You'll have to forgive me.

Anyway I googled for "+view +PDF +console" and here's what I found:

Vimal Joseph posts :

>> Use pdftotext to view pdf files from console

There is no such package as `pdftotext' but a search shows that it is
contained in the `xpdf-utils' package.

gnuhead:~# dpkg -S pdftotext
xpdf-utils: /usr/bin/pdftotext
xpdf-utils: /usr/share/man/man1/pdftotext.1.gz

Tnx anyway and now inside mc, I am able to read a pdf file without
firing up X...

So - it is possible to view PDFs without starting X'es.
I'm off to check that.

Bye for now. You'll hear from me yet ;-)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Create pdf files for viewing on a Palm PDA qwerty Linux - Software 3 06-01-2006 03:52 PM
Viewing images fom the console dxdad Linux - Software 1 09-29-2004 05:22 PM
viewing images in console?? marlor Slackware 5 07-22-2004 05:59 PM
viewing a pdf when using xterm gaviidae Linux - Newbie 9 07-19-2004 10:20 AM
KGhostView (pdf viewing question) l0f33t Linux - Software 0 08-04-2003 11:32 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration