Operating System - HP-UX
1829712 Members
2096 Online
109992 Solutions
New Discussion

How to print postscript file?

 
SOLVED
Go to solution
zhaogui
Super Advisor

How to print postscript file?

I have a postscript file but don't know how to print it. When I type "file myfile", it shows "postscript file", When I print it, it just come out garbage.
4 REPLIES 4
Robin Wakefield
Honored Contributor
Solution

Re: How to print postscript file?

Hi,

Use the raw switch:

lp -dprinter -onb -oraw filename.ps

Rgds, Robin
Stefan Schulz
Honored Contributor

Re: How to print postscript file?

Hi,

this may be a dump question, but is your printer capable to print postscript directly?

If not than you have to convert this file to something your printer understands (like PCL or HPGL).

If your printer has an PS option this sounds like your modelscripts does something funny to the printjob. Bypass the modelscript with the raw option (lp -oraw ...)

Hope this helps

Regards Stefan
No Mouse found. System halted. Press Mousebutton to continue.
zhaogui
Super Advisor

Re: How to print postscript file?

Thank you for your help. It works.
H.Merijn Brand (procura
Honored Contributor

Re: How to print postscript file?

I know I'm late in this, but for those that want to print/preview postscript and/or do not have a postscript printer, consider using the combination of Ghostscript/Ghostview, available from http://hpux.tn.tudelft.nl/hppd/hpux/PostScript/

Ghostscript = gs: http://hpux.tn.tudelft.nl/hppd/hpux/PostScript/gs-5.10/
Ghostview = gv: http://hpux.tn.tudelft.nl/hppd/hpux/PostScript/gv-3.5.8/

Don't use 'ghostview' which is hopelessly antiquated

Enjoy, Have FUN! H.Merijn