Date: Wed, 12 Jun 1996 09:45:50 +0200 (MET DST) From: "Christoph P. Kukulies" <kuku@gilberto.physik.rwth-aachen.de> To: nickf@ptd.net (NickHead) Cc: questions@freebsd.org Subject: Re: ghostscript Message-ID: <199606120745.JAA04245@gilberto.physik.rwth-aachen.de> In-Reply-To: <31BE3BAA.41C67EA6@ptd.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> I'm having a problem with ghostscript 3.51...hopefully someone can help! > > When I print from netscape (the only PS application I use) I get an > extra page at the end of the document that looks like this: > > Operand stack: > Execution stack: > %interp_exit () --nostr > > > I'm using an HP LaserJet 4+ printer here is my /etc/printcap: > > # @(#)printcap 5.3 (Berkeley) 6/30/90 > > lp|local line printer:\ > :sh:lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:\ > :if=/usr/local/libexec/hplj: > > and my filter: > > #!/bin/sh > # > printf "\033&k2G" || exit 2 > # > read first_line > first_two_chars=`expr "$first_line" : '\(..\)'` > # > if [ "$first_two_chars" = "%!" ]; then > /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=ljet4 I assume you don't have a tru line break at the end of the previous line. I would insert a tee >/tmp/teelog | in front of the /usr/local/bin/gs line to see what is actually fed into gs. > -sOutputFile=- - \ && exit 0 > else > echo $first_line && cat && printf "\f" && exit 2 > fi > exit 2 > > If anyone can help, please e-mail at nickf@ptd.net > > Thanx! Nick > --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606120745.JAA04245>