1834912 Members
2996 Online
110071 Solutions
New Discussion

Print to file

 
SOLVED
Go to solution
Schmutz Andre
New Member

Print to file

Hello !

I would like to setup a printer on a HP-UX 10.20 which will create a postcript (or a pdf) file in a specified (user may change it when printing) directory.

Your help will be appreciated !

AndrT Schmutz.
2 REPLIES 2
John Palmer
Honored Contributor
Solution

Re: Print to file

One possibility:-

setup a print queue based on the standard interface script 'dumbplot'.

Edit /etc/lp/interface/ as appropriate to do whatever you want with the file that has been lp'd

Use the -o flag of the lp command to specify the alternate directory or output file or whatever. You can do what you like with this argument.
Thomas Schler_1
Trusted Contributor

Re: Print to file

If the only purpose is to create a PostScript
file, I recommend to use a2ps instead of
the printing command. a2ps comes with options
to have control on the outlook of the
PostScript document.

a2ps can be found on
http://hpux.cs.utah.edu/, the PD software
archive of HP.
no users -- no problems