Operating System - HP-UX
1821051 Members
2754 Online
109631 Solutions
New Discussion юеВ

Print PDF with Ghostscript on HP-UX

 
SOLVED
Go to solution
MR VILLOT   MR MONTAGNE
Frequent Advisor

Print PDF with Ghostscript on HP-UX

Hi

I would like to know which are the settings to print pdf files with Ghostscript (7.07) on HP-UX.

Thanks a lot
Laurent
9 REPLIES 9
Steven E. Protter
Exalted Contributor

Re: Print PDF with Ghostscript on HP-UX

All you have to do is:

install ghostscript which you have.

install adobe reader so your print spoolers and such can read the documents you create.

adobe reader must be run one time in gui mode or text mode to acknowledge the license agreement.

As far as how to create the pdf docs, that depends on the tool you are using. We use oracle reports, which handles all internal details, we just submit the document to the print queue and we are done.

To further assist, I need to know what tool you will be using to create the doc.

SEP

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sridhar Bhaskarla
Honored Contributor

Re: Print PDF with Ghostscript on HP-UX

Hi Laurent,

You can get Ghostscript (gs) from the following location. You can open and print your pdf files using it.

http://hpux.cs.utah.edu/hppd/hpux/PostScript/ghostscript-7.07/

This is for versions 11.0 and above.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
MR VILLOT   MR MONTAGNE
Frequent Advisor

Re: Print PDF with Ghostscript on HP-UX

Thanks

We use also Oracle Reports to generate pdf files.

I installed Ghostscript on test machine and I try to print only a pdf doc but it doest not work. I do not known how to set printer and spool to print pdf.

Could you give me the details how to set print spooler.

Laurent
Steven E. Protter
Exalted Contributor

Re: Print PDF with Ghostscript on HP-UX

What print spooler.

For easyspooler we had to set up soft links to adobe reader and get a document translater writtin becuase easyspooler doesn't handle pdf directly. Can't upload the code, license agreement. We paid $600 for it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Gerard Leclercq
Trusted Contributor
Solution

Re: Print PDF with Ghostscript on HP-UX

Bonjour,

I recommend to use AcrobatReader which is
more precise than ghostscript. On my system,
I use it in a script :

/opt/Acrobat/bin/acroread -toPostScript
-size a4 *.pdf | lp -dname_of_printer

If your printer is postscript, that works without any problem.

If your printer is not postscript, please tell me what is the language used.

If you do not have AcrobatReader, please tell me, I will find one for you (It is free)

Gerard
Ed Ulfers
Frequent Advisor

Re: Print PDF with Ghostscript on HP-UX

We have GhostScript and print PDF files all the time. The trick is either to
1) change your print driver for your printer of choice to perform the ghostscript conversion inside the interface program
2) use a pipe to perform ghostscript conversion as part of the print command.

The easy way is #2, e.g. "cat file|gs -|lp".
Since we did so much of this, we built "smart" print drivers that detect PDF/PS files that need converting into our print drivers, but that was a large undertaking and is still getting little surprises at times.

It should not be difficult, good luck completing your desires.
-- Ed Ulfers
Put a smile on your users face, offer them a kiss (Hershey's Kiss).
MR VILLOT   MR MONTAGNE
Frequent Advisor

Re: Print PDF with Ghostscript on HP-UX


I get Acrobat Reader and install it on my host. My printer is a postscript printer and I could print pdf with command :
cat *.pdf | acroread -toPostScript | lp -dname_of_printer.

I am going to try ghostscript also.
Thanks for your help.
Bye
Laurent

Pca_1
New Member

Re: Print PDF with Ghostscript on HP-UX

Hi everyone.

If anyone can help me...

I have a problem printing pdf files 1.3 with GS (8.14)... the only documents i can print correctly are 1.2. The outputs of any PDF-1.3 are completly strange...

Anyone knows a workaround to this situation??

(sorry about my english).

Thx!
stephenngan
New Member

Re: Print PDF with Ghostscript on HP-UX

Could you tell me the exact command you use to print out using Ghostscript?