Operating System - HP-UX
1834501 Members
2238 Online
110068 Solutions
New Discussion

Printing a pdf from the command line

 
SOLVED
Go to solution
Gary Norton
Occasional Contributor

Printing a pdf from the command line

Hi,

I want to print a pdf file from the command line but am not having any luck. I read a few posts that speak of converting it to postscrip first, but I don't know how to do that either. I'm running hpux 11.11 and printing to a laserjet 4050 through the network. I also have acrobat4 installed on the unix server. Any help would be appreciated...thx.
4 REPLIES 4
Pete Randall
Outstanding Contributor
Solution

Re: Printing a pdf from the command line

Gary,

According to the Acroread help section, you can use the following syntax:

cat sample.pdf |acroread -toPostScript |lp

Pete
Victor BERRIDGE
Honored Contributor

Re: Printing a pdf from the command line

Hi,
You would have to install acrobat reader,
acrobat reader would translate to postscript:

Here is a sample I use:
cat $PROFILES$.FILENAME | /opt/Acrobat5/bin/acroread -toPostScrtipt
| lp -c -d$PROFILES$.PRINTER -n$PROFILES.CONC_COPIES



All the best
Victor
Fred Ruffet
Honored Contributor

Re: Printing a pdf from the command line

Using linux, I use pdf2ps. This comes with ghotscript... Which has a port on HP. Have a look at http://www.ghostscript.com/

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Gary Norton
Occasional Contributor

Re: Printing a pdf from the command line

Thanx guys...Pete's solution nailed it!