Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jun 1996 23:38:18 -0400
From:      NickHead <nickf@ptd.net>
To:        questions@freebsd.org
Subject:   ghostscript
Message-ID:  <31BE3BAA.41C67EA6@ptd.net>

next 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
-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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?31BE3BAA.41C67EA6>