LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   hoe to view pdf files in command mode. (https://www.linuxquestions.org/questions/linux-newbie-8/hoe-to-view-pdf-files-in-command-mode-363234/)

bruse 09-14-2005 05:58 AM

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.

theYinYeti 09-14-2005 06:12 AM

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.

sunsane 09-14-2005 06:19 AM

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..

bruse 09-14-2005 06:51 AM

eg-<C-shell> ./acroread

is this package or command.
how could this open my pdf file in terminal .pls more abt this.

sunsane 09-14-2005 07:12 AM

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.

theYinYeti 09-14-2005 07:18 AM

It seems pdf2ps isn't even needed! This should work:
Code:

ps2ascii your_file.pdf >(less)
Yves.

bruse 09-14-2005 07:25 AM

ps2ascii *.pdf | more

this helped me too.thanks.

gdprasad 09-15-2005 10:03 AM

"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


All times are GMT -5. The time now is 08:47 AM.