Date: Mon, 11 Nov 1996 18:20:37 -0500 From: rhh@ct.picker.com (Randall Hopper) To: mcgovern@spoon.beta.com (Brian J. McGovern) Cc: questions@FreeBSD.org Subject: Re: gs as ps filter Message-ID: <Mutt.19961111182037.rhh@ct.picker.com> In-Reply-To: <199611092201.RAA00845@spoon.beta.com>; from Brian J. McGovern on Nov 9, 1996 17:01:41 -0500 References: <199611092201.RAA00845@spoon.beta.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Brian J. McGovern:
|I've seen some recent talk on the questions list about using Ghostscript
|as a filter for non-postscript printers. I'm interested in doing something
|similar with my Cannon BJC-600. Could someone send me a copy of their
|printcap file that does this? Thanks.
| -Brian
Yep, works quite nicely. Much cheaper than the extra memory and Postscript
SIMM for my Laserjet 4P, and takes very little time to crunch on a Pentium
100 :-)
You'll want to tweak most of the printcap paths and control strings.
E.g. I have my print spool on /usr, and have the init strings set up for an
HP-LJ4P.
Randall Hopper
rhh@ct.picker.com
------ /etc/printcap entries: ------------------------------------------------
lp|LJ4P RAW:\
:lp=/dev/lpt0:sd=/usr/var/spool/lpd/lp:lf=/var/log/lpd-errs:\
:mx#0:ff=\033E:fo:sh:tr=\033E:
text|LJ4P TEXT (UNIX->DOS EOL text conversion & PC-8 [not Roman-8] Fontset):\
:lp=/dev/lpt0:sd=/usr/var/spool/lpd/text:lf=/var/log/lpd-errs:\
:mx#0:ff=\033E\033&k2G\033(10U:fo:sh:tr=\033E:
ps|LJ4P POSTSCRIPT (Ghostscript PS->PCL conversion):\
:lp=/dev/lpt0:sd=/usr/var/spool/lpd/ps:lf=/var/log/lpd-errs:\
:of=/opt/bin/gslj:\
:mx#0:sf:sh:
------ and my /opt/bin/gslj script: ------------------------------------------
#!/bin/sh
#
# PS->PCL Filter Script -- Uses GhostScript
#
TMPDIR=/usr/tmp
GSLIB=/usr/local/lib/ghostscript/fonts
PATH=/usr/local/bin:/usr/bin:$PATH
#PRINTER=lp
export TMPDIR GSLIB PATH
#exec gs -q -sDEVICE=laserjet -r300 -dNOPAUSE -- gslp.ps $*
#exec gs -q -sDEVICE=ljet4 -dNOPAUSE -sOutputFile=\|lpr gslp.ps -
exec gs -q -sDEVICE=ljet4 -dNOPAUSE -sOutputFile=- gslp.ps -
------------------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Mutt.19961111182037.rhh>
