[comp.text.desktop] Need hack for Interleaf printing.

mjwargo@athena.mit.edu (Michael J Wargo) (09/27/90)

A while ago I asked in comp.lang.postscript:

	Would some kind soul please e-mail the method
	for adding "DRAFT" in large gray letters to
	a postscript document. 

I received a number of responses.  [Haven't tried them yet,
but I trust they'll all work :-).]  Now, for the next part
of the problem...  I'd like to generate new printers within
Interleaf that will take care of this little trick.  Making 
the new printers shouldn't be a problem, but, it appears 
that the secret is in the printcap file.  How do
you get the output of the pl2ps filter to pipe through another
filtering program (the one that does the "DRAFT" stuff) before
shipping it off to /usr/ucb/lpr ?  The Interleaf generated
printcap entries for the two current printer entries is as follows:

1|ps_printer|Printer#1(laserwriter-II):\
        :lpd=/usr/lib/lpd:lp=/dev/null:sd=/usr/spool/ipd1:\
        :lf=/usr/spool/ipd1/log:pl#1:sh:sb:sf:rw:\
        :if=/interleaf/tps4.0/sysio/spooler/plfilt:\
        :printerleaf=/interleaf/tps4.0/sysio/ps/pl2ps -r 1270 -T pslw+ \
         %! /usr/ucb/lpr -Plw -h:\
        :other=/usr/ucb/lpr -Plw -h:
2|cx_printer|Printer#2(cx-laserwriter-II):\
        :lpd=/usr/lib/lpd:lp=/dev/null:sd=/usr/spool/ipd2:\
        :lf=/usr/spool/ipd2/log:pl#2:sh:sb:sf:rw:\
        :if=/interleaf/tps4.0/sysio/spooler/plfilt:\
        :printerleaf=/interleaf/tps4.0/sysio/ps/pl2ps -T cx \
         %! /usr/ucb/lpr -Plw -s -h:\
        :other=/usr/ucb/lpr -Plw -h:

Does anyone have a clue as to what needs to be done to accomplish this?
While I'm at it, how would you get Interleaf to output the postscript
code direct to a file, rather than sending it to the printer.
I'm betting that this is a similar problem as to the one sighted above.

I'm running Interleaf 4.0.74 on a Sun4/280 and SunOS 4.0.1. 

Please reply by e-mail and I'll post a summary if interest warrants.


					Thanks a ton,
					Mike Wargo

		preferred ---------->	michael@agricola.mit.edu
					mjwargo@athena.mit.edu