From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <6b221435fe329720cf7aed179b570bd3@granite.cias.osakafu-u.ac.jp> To: 9fans@cse.psu.edu Subject: Re: [9fans] AFPL Ghostscript-8.13 plus hpijs-1.5 From: Kenji Okamoto In-Reply-To: <5f3b79b4d24b73c53e008e32664e8cba@plan9.bell-labs.com> MIME-Version: 1.0 Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Wed, 25 Feb 2004 09:50:30 +0900 Topicbox-Message-UUID: f4029a8a-eacc-11e9-9e20-41e7f4b1d025 > I stuck your /sys/lib/lp/process/{generic,pdfgsijs} onto sources. Great! So, please add one more file /sys/lib/lp/process/gspipeijs which I posted here long time ago, and probably many don't remember it. This is for plain postscript file, not pdf file. -----from here /sys/lib/lp/process/gspipeijs ----- #!/bin/rc # extended to IJS driver by K.Okamoto # duble-sided printing for PSC 2550 printer # if (! ~ $DEBUG '') flag x + # usage: gspipeijs [dev] # assumes postscript on stdin switch($#*) { case 0 MODEL=`{echo $LPCLASS | sed 's/(.*\+)?gsijs!([^+]*)(\+.*)?/\2/'} NUMBER=`{echo $LPCLASS | sed 's/(.*\+)?gsijs!([^+]*)\+(.*)?/\3/'} case 1 IJS=$1 case * echo 'usage: gspipeijs [dev]' >[1=2] exit gspipeijs } GSTMPFILE=/tmp/gsp$pid switch($NUMBER) { case 2100 GSOPT=(-q -sDEVICE'='ijs -sIjsServer'='hpijs -sDeviceManufacturer'='HP '-sDeviceModel='"$MODEL^' '^$NUMBER" -r600 -sOutputFile'='^$GSTMPFILE -sPAPERSIZE'='a4 -dIjsUseOutputFD -dSAFER -dNOPAUSE -DBATCH) case 2500 GSOPT=(-q -sDEVICE'='ijs -sIjsServer'='hpijs -sDeviceManufacturer'='HP '-sDeviceModel='"$MODEL^' '^$NUMBER" -r600 -sOutputFile'='^$GSTMPFILE -dDuplex'='true -sPAPERSIZE'='a4 -dIjsUseOutputFD -dSAFER -dNOPAUSE -DBATCH) } gs $GSOPT - cat $GSTMPFILE rm $GSTMPFILE exit ----------- cut here --------- Kenji