LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 11-14-2007, 11:37 AM   #1
tramni1980
Member
 
Registered: Jul 2006
Location: Tübingen, Germany
Distribution: Slackware64-13.37
Posts: 737

Rep: Reputation: 37
view pdf in terminal?


Hello!
I am running Slackware Linux 12.0. I would like to ask whether there is a tool for viewing pdf files in terminal? (ncurses based or whatever).

Thank you.
 
Old 11-14-2007, 11:45 AM   #2
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
You can convert the pdf to ascii with pdftotext, and view that. But it really depends on what kind of information you want to see in the pdf - pictures or text?
 
Old 11-14-2007, 12:10 PM   #3
tramni1980
Member
 
Registered: Jul 2006
Location: Tübingen, Germany
Distribution: Slackware64-13.37
Posts: 737

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by pwc101 View Post
You can convert the pdf to ascii with pdftotext, and view that. But it really depends on what kind of information you want to see in the pdf - pictures or text?
I would be glad if it could be possible to view the pdf as it is, inevitably allowing for deteriorated quality, of course. I just wondered if there is such a tool that I am not aware of.
 
Old 11-14-2007, 12:26 PM   #4
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
You can view images and you can view text using svgalib.

So, here's something to try:
Use 'pdftoppm' to convert pdf to ppm, then use 'seejpeg' to view the ppm using svgalib.

Quote:
PACKAGE NAME: seejpeg-1.10-i386-1
COMPRESSED PACKAGE SIZE: 53 K
UNCOMPRESSED PACKAGE SIZE: 120 K
PACKAGE LOCATION: /var/log/mount/slackware/ap/seejpeg-1.10-i386-1.tgz
PACKAGE DESCRIPTION:
seejpeg: seejpeg (console JPEG viewer)
seejpeg:
seejpeg: Seejpeg is an image viewer which uses SVGAlib. In spite of the name,
seejpeg: it understands the JPEG, GIF, PPM, BMP and TARGA formats. One nice
seejpeg: feature of seejpeg is that it automatically decides on the best video
seejpeg: mode to use based on the image being displayed and the video card
seejpeg: being used.
seejpeg:
seejpeg: Evan Harris is the author of seejpeg.
seejpeg:
seejpeg:
 
Old 11-14-2007, 01:31 PM   #5
tramni1980
Member
 
Registered: Jul 2006
Location: Tübingen, Germany
Distribution: Slackware64-13.37
Posts: 737

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by H_TeXMeX_H View Post
You can view images and you can view text using svgalib.

So, here's something to try:
Use 'pdftoppm' to convert pdf to ppm, then use 'seejpeg' to view the ppm using svgalib.
I tried this but it does not seem to work right out of the box. When I issue in the terminal without X:
seejpeg opit.ppm-000001.ppm
I get :

svgalib: ark: Unknown chiptype 0.
Warning: you have not yet configured your mouse type. If you have no mouse,
setting the type to `none' in /etc/vga/libvga.config will get rid of this
annoying message.
svgalib: Failed to initialize mouse.
Cannot find a 32K/16M colour video mode
svgalib: Signal 8: Floating point exception received.

If I issue the same command in the kde konsole I get:
svgalib: can't open /dev/console

Is there somewhere a guide on configuring this to work?
 
Old 11-14-2007, 01:53 PM   #6
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,490

Rep: Reputation: Disabled
Quote:
Originally Posted by tramni1980 View Post
I would be glad if it could be possible to view the pdf as it is, inevitably allowing for deteriorated quality, of course. I just wondered if there is such a tool that I am not aware of.
Here is one: http://linux.bytesex.org/fbida/ . It compiles fine with src2pkg. Quality of images isn't too great, obviously.

Brian
 
Old 11-14-2007, 02:03 PM   #7
tramni1980
Member
 
Registered: Jul 2006
Location: Tübingen, Germany
Distribution: Slackware64-13.37
Posts: 737

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by BCarey View Post
Here is one: http://linux.bytesex.org/fbida/ . It compiles fine with src2pkg. Quality of images isn't too great, obviously.

Brian
Thank you very much! That is exactly what I needed
 
Old 11-14-2007, 02:05 PM   #8
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Well, you'll have to edit '/etc/vga/libvga.config', there are notes in there to help you configure it, also read 'man libvga.config'.
 
  


Reply


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 fields and view FDF's PLEASE HELP!!!! klmbrt Linux - Software 4 01-31-2006 08:14 PM
Can't view pdf links in FF with Suse 10 acanton Suse/Novell 2 10-20-2005 10:35 AM
Can't view (most) PDF files in mdk10.0 PsychosisNode Mandriva 0 11-06-2004 10:16 AM
View Pdf files on runlevel 3 mikeshn Linux - Software 2 12-11-2003 04:27 PM
view pdf & .doc without X sub_slack Linux - General 6 11-07-2003 07:17 PM


All times are GMT -5. The time now is 11:27 AM.

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