From owner-freebsd-questions Mon Nov 11 15:31:10 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA20147 for questions-outgoing; Mon, 11 Nov 1996 15:31:10 -0800 (PST) Received: from central.picker.com (central.picker.com [144.54.31.2]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id PAA20045 for ; Mon, 11 Nov 1996 15:30:11 -0800 (PST) Received: from ct.picker.com by central.picker.com with smtp (Smail3.1.28.1 #3) id m0vN5hN-0004s7C; Mon, 11 Nov 96 18:23 EST Received: from elmer.ct.picker.com ([144.54.57.34]) by ct.picker.com (4.1/SMI-4.1) id AA06106; Mon, 11 Nov 96 18:21:00 EST Received: by elmer.ct.picker.com (SMI-8.6/SMI-SVR4) id SAA04424; Mon, 11 Nov 1996 18:20:37 -0500 Message-Id: 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 References: <199611092201.RAA00845@spoon.beta.com> X-Mailer: Mutt 0.50 Mime-Version: 1.0 In-Reply-To: <199611092201.RAA00845@spoon.beta.com>; from Brian J. McGovern on Nov 9, 1996 17:01:41 -0500 Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk 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 - ------------------------------------------------------------------------------