Operating System - HP-UX
1833043 Members
2359 Online
110049 Solutions
New Discussion

generate file postscript with spooler

 
SOLVED
Go to solution
Joaquín_2
Advisor

generate file postscript with spooler

I want use spooler of hpux by generate files in format postscript, so when i print any file a got one file
This i want do it because i have install ghostcript and i can convert file .ps in file pdf and this is very useful.
¿Anyone knows how do it?

Thank'
4 REPLIES 4
TwoProc
Honored Contributor
Solution

Re: generate file postscript with spooler

A few to try...

lp -oraw -d[destination printer] [filetoprint]

lp -ops -d[destination printer] [filetoprint]

The first one uses "raw" output - tells HPUX to ignore all formatting stuff and just let the printer handle it - no trying to help. The printer at this point should see that it's postscript and take over from there.

The second tells the printer that it's sending a postscript job.

Also, try not printing a burst page.

"lp -onb"

What works for me everytime is "lp -onb -oraw " switches. But, there are downsides to that - can't tell it how many copies, can't tell it which tray, etc.

We are the people our parents warned us about --Jimmy Buffett
Sanjay_6
Honored Contributor

Re: generate file postscript with spooler

Hi,

Maybe, what you are looking for is a ascii to ps converter,

http://hpux.cs.utah.edu/hppd/hpux/PostScript/a2x-1.0/

Hope this helps.

Regds
Bill Hassell
Honored Contributor

Re: generate file postscript with spooler

The spooler will convert a simple ACII file into Postscript but it expects the output to go to a real printer, not a file. You can 'borrow' the postscript model script to convert ASCII text to Postscript. Look in the /usr/lib/lp/model at the file "postscript". You'll need to adjust it a bit to make it work as a simple filter.


Bill Hassell, sysadmin
Joaquín_2
Advisor

Re: generate file postscript with spooler

happy year all

John I imagine that you said me i for can send file postscript to printer and it run correctly. I need to know to make a file postscript and not to print. I think that the postscript filter that Bill said us, can work fine, but i don't know how do it.