From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078620310243.tru64-unix-managers.marc@archive.invalid> From: lombardi emanuele Date: Tue, 02 Dec 1997 10:32:06 +0000 To: tru64-unix-managers Subject: SUMMARY: color printer lj250 X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078620310243 Dear managers, Thanks to: John Deacon Hans Schwengeler Nathan P Shaw who helped me in solving the problem to print Postscript file on my DEC Companion Color Printer lj250. The solution is to use ghostscript to convert from ps to the format of lj250 and then to send the result to the printer. Of course gs has to be compiled with the DEVICE declj250 . Here the lpd filter John suggested me to use, it works fine! #!/sbin/sh # GS=/usr/local/bin/gs # cat - | \ ( $GS -q -dNOPAUSE -sDEVICE=declj250 -r180x180 -sOutputFile=- - ) # exit 0 # #+------------------------------------------------------------------------- # #+ PS2LJ250 - Input Print Filter for DEC LJ250 # # Description: # Converts a PostScript file (spooled via lpr) to HP-PCL format using # Ghostscript and sends it directly to a DEC LJ250 Colour Inkjet Printer. # Automatically switches the printer to the correct mode. # # Usage: # When placed in the `if' field of the printcap entry for a DEC LJ250, # transparently converts a PostScript file to HP-PCL format. # # Pre-requisites: # You must have Ghostscript V3.01 and you must have included declj250 # device support. # # Author: # John Deacon, UCL (jrd@star.ucl.ac.uk) # # History: # 25-Nov-1994 - Original version (jrd) # # # Example Printcap Entry: # # # # # LJ250 Colour Inkjet Printer # # # sys_inkjet|lp5|5:\ # :af=/usr/adm/lpacct:\ # :br#9600:\ # :ct=LAT:\ # :fc#0177777:fs#03:\ # :ts=ZUDS6:\ # :op=PORT_4:\ # :rw:\ # :lf=/usr/adm/lperr:\ # :lp=/dev/tty0s:\ # :mx#0:\ # :if=/usr/local/bin/ps2lj250:\ # :os=inkjet:\ # :sh:\ # :xc#0177777:\ # :xf=/usr/lbin/xf:\ # :xs#044000:\ # :sd=/var/spool/lpd/sys_inkjet:\ # :pl#66:\ # :pw#80: # I use a Terminal Server ts90m by LAT protocol and I had to set the port in DSR mode becouse in XON mode there were many communicatin errors. I changed /etc/princap in the following way to meet my needs: 254p|lp4p|4p:\ :af=/usr/adm/lp_account/254p:\ :br#9600:\ :ct=LAT:\ :fc#0177777:\ :fs#03:\ :if=/usr/local/bin/ps2lj250:\ :lf=/usr/adm/lp_errors/254p:\ :lp=/dev/lat/624:\ :mx#0:\ :pl#66:\ :pw#80:\ :rw:\ :sd=/usr/spool/lpd/254:\ :sh:\ :xc#0177777:\ :xf=/usr/lbin/xf:\ :xs#044000: Thank you again John, Hans and Nathan and thanks to the whole community of osf-managers which do a great job in helping one each others! Emanuele -- Emanuele Lombardi mail: AMB-GEM-CLIM ENEA Casaccia I-00060 S.M. di Galeria (RM) ITALY mailto:lele@mantegna.casaccia.enea.it tel +39 6 30483366 fax +39 6 30483591