Unix/Linux Go Back    


Shell Programming and Scripting Unix shell scripting - KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and shell scripts and shell scripting languages here.

How to open a pdf file from terminal?

Shell Programming and Scripting


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 01-16-2010
rrd1986 rrd1986 is offline
Registered User
 
Join Date: Jan 2010
Last Activity: 11 January 2015, 3:32 AM EST
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Java How to open a pdf file from terminal?

how to open a .pdf file from terminal not using gpdf

I work on fedora 12 and default application assigned for viewing the pdf files is document-viewer
Sponsored Links
    #2  
Old Unix and Linux 01-16-2010
ankurjain ankurjain is offline
Registered User
 
Join Date: Jul 2007
Last Activity: 2 March 2011, 6:06 AM EST
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
u can invoke the pdf viewer from terminal with the file name as argument for example if its arcobat reader then ...

acroread test.pdf

shall open acrobat reader with test.pdf opened ....
Sponsored Links
    #3  
Old Unix and Linux 01-17-2010
rrd1986 rrd1986 is offline
Registered User
 
Join Date: Jan 2010
Last Activity: 11 January 2015, 3:32 AM EST
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Bug thanks

thanks buddy for posting that thread.

but I am afraid that i dont have acrobat reader in my system.
In that case can u plz suggest me how to know the CLI command for any application in linux.............


I am now using document viewer for opening pdf files......probably thats an application in office.org.....
    #4  
Old Unix and Linux 01-17-2010
drl's Unix or Linux Image
drl drl is offline Forum Advisor  
Registered Voter
 
Join Date: Apr 2007
Last Activity: 19 April 2015, 8:45 AM EDT
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 1,762
Thanks: 57
Thanked 231 Times in 207 Posts
Hi.

For:

Code:
OS, ker|rel, machine: Linux, 2.6.31.6-166.fc12.i686.PAE, i686
Distribution        : Fedora release 12 (Constantine)

To find the utilities that you have installed that might deal with pdf files, use:

Code:
man -k pdf

To see what you have installed and what is available in the repositories:

Code:
yum list '*pdf*'

To see a detailed description of the items from the list:

Code:
yum info '*pdf*'

To install something, say xpdf:

Code:
(become root)
yum install xpdf

which then makes available:

Code:
xpdf - Portable Document Format (PDF) file viewer for X (version 3.02)

which can be used as, for example:

Code:
xpdf /usr/share/doc/bzip2-devel-1.0.5/manual.pdf

More information is found in man yum and other man pages.

Best wishes ... cheers, drl
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Unix or Linux Image More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to open and arrange terminal windows automatically under CDE? aixlover Solaris 5 08-21-2009 03:21 PM
STDERR to file & terminal using tee satnamx Shell Programming and Scripting 4 08-10-2009 11:05 AM
open terminal to run cmd using shell script chandrabhushan Shell Programming and Scripting 2 05-26-2009 07:44 AM
Pseudo-terminal will not be allocated because stdin is not a terminal. Shivdatta UNIX for Advanced & Expert Users 1 08-04-2008 10:29 AM
connecting to unix through hyper terminal - as a dumb terminal michelle UNIX for Advanced & Expert Users 2 11-05-2001 02:32 PM



All times are GMT -4. The time now is 08:47 PM.