LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-14-2005, 05:58 AM   #1
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
hoe to view pdf files in command mode.


i have lot of problem with xserver.
now i am currently working with command mode.

can u please tell me some of the command for viewthe pdf files in command mode.
 
Old 09-14-2005, 06:12 AM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
You could probably pipe a couple commands:
- pdf2ps will give you the PostScript equivalent of your PDF file.
- Starting from there you can obtain plain text using ps2ascii or pstotext

Yves.
 
Old 09-14-2005, 06:19 AM   #3
sunsane
LQ Newbie
 
Registered: Sep 2005
Location: INDIA
Distribution: Mandrake
Posts: 10

Rep: Reputation: 0
bruse,
AFAIK you need to first set the DISPLAY on using setenv or set command depending on
the shell you are working on c-shell or bash respectively.

eg-<C-shell> setenv DISPLAY <IPAddress or name of our M/c:0.0>
This will enable display to view the *.pdf or anyother file.
Next just run the executable of acrobat to view your pdf file.

eg-<C-shell> ./acroread

That's it..
 
Old 09-14-2005, 06:51 AM   #4
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
eg-<C-shell> ./acroread

is this package or command.
how could this open my pdf file in terminal .pls more abt this.
 
Old 09-14-2005, 07:12 AM   #5
sunsane
LQ Newbie
 
Registered: Sep 2005
Location: INDIA
Distribution: Mandrake
Posts: 10

Rep: Reputation: 0
acroread is the executable for running acrobat reader on my sunplatform.
and I work on c-shell.So just setting environment by setenv DISPLAY
bruse-machine:0.0 and then running the executable iff u are having
acrobat package with u.

check it.
 
Old 09-14-2005, 07:18 AM   #6
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
It seems pdf2ps isn't even needed! This should work:
Code:
ps2ascii your_file.pdf >(less)
Yves.
 
Old 09-14-2005, 07:25 AM   #7
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
ps2ascii *.pdf | more

this helped me too.thanks.
 
Old 09-15-2005, 10:03 AM   #8
gdprasad
LQ Newbie
 
Registered: Oct 2003
Posts: 4

Rep: Reputation: 0
"evince" is one such pdf viewer programme.
"$ which evince"
/usr/bin/evince

On my system
$evince filename.pdf
displays the pdf file. You may have other pdf viewer programme if not evince like may be 'kpdf' or something like that.

Prasad
 
  


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
Can't view (most) PDF files in mdk10.0 PsychosisNode Mandriva 0 11-06-2004 09:16 AM
How can I read pdf files at the command line? hansi umayangan Linux - General 8 09-02-2004 07:27 AM
print files in PDF or html format from the linux command line IBKnobel Linux - Software 3 07-12-2004 09:29 PM
View Pdf files on runlevel 3 mikeshn Linux - Software 2 12-11-2003 03:27 PM
view pdf & .doc without X sub_slack Linux - General 6 11-07-2003 06:17 PM


All times are GMT -5. The time now is 05:44 AM.

Main Menu
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