Operating System - HP-UX
1830220 Members
2364 Online
109999 Solutions
New Discussion

printing pdf output from hpux...

 
Manuel Contreras
Regular Advisor

printing pdf output from hpux...

I was wondering what other options where out there for printing pdf output?

All feedback is appreciated,
manuel


The following is a solution I installed on a test box:

First, Acrobat Reader needs to be installed on the HP-UX system.
http://www.adobe.com/products/acrobat/readstep2.html

after you untar your adobe download, you will have the following:
COMMON.TAR HPUXRDR.TAR INSTALL LICREAD.TXT MANIFEST README

as root:
sh ./INSTALL
type accept for the license.
Enter installation directory for Acrobat 5.0.9 [/opt/Acrobat5]

Directory "/opt/Acrobat5" does not exist.
Do you want to create it now? [y] y

Installing platform independent files ... Done

Installing platform dependent files ...

under /opt you may want to setup a link?
drwxr-xr-x 6 root sys 96 Nov 30 11:53 Acrobat5
lrwxr-xr-x 1 root sys 8 Nov 30 11:54 adobe -> Acrobat5

setup a link for acroread:
# pwd
/usr/local/bin
# ln -s /opt/adobe/bin/acroread acroread


Now you are ready to print
--------------------------------

Then use this command to print a PDF document to the Laserjet printer:

# cat mydocument.pdf | /usr/local/bin/acroread -toPostScript -shrink | /usr/bin/lp.hp -d rich
To print only a range of pages:
# cat mydocument.pdf | /usr/local/bin/acroread -toPostScript -start 5 -end 15 -shrink | lp -d rich

initially I tried the above command w/o the "-shrink" option, but my printouts would encounter issues w/left and right margins (poor report design?).
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: printing pdf output from hpux...

That's basically the technique I use. The only difference is that I use the Acrobat reader that installs with the OS rather than installing it from scratch.


Pete

Pete
Alzhy
Honored Contributor

Re: printing pdf output from hpux...

Your other option would be to use Ghostscript (gs). There is already a rpvided script called pdf2ps that you can compare with acroread.
Hakuna Matata.
Manuel Contreras
Regular Advisor

Re: printing pdf output from hpux...

Pete/Everyone,
Which depot did you install to get acroread on your box?
This may be a better option for production boxes...thanks,
manuel contreras
Alzhy
Honored Contributor

Re: printing pdf output from hpux...

www.adobe.com
Hakuna Matata.
Manuel Contreras
Regular Advisor

Re: printing pdf output from hpux...

The same tar package is also available from there ftp site:
ftp://ftp.adobe.com/pub/adobe/acrobatreader/unix/

I was actually looking for an acroread in an install-able depot for HPUX boxes.
I read a reference (wish I could remember where) about performing an "swlist -l product" to verify that you have adobe/acrobat/acroread INSTALLED.
The current reader provided by adobe is not a depot, and will not show up in an swlist.

Thanks,
manuel