Date: Sun, 5 Oct 1997 23:22:21 +0200 (SAT) From: Khetan Gajjar <khetan@chain.iafrica.com> To: rknebel@mail.microserve.net Cc: freebsd-questions@FreeBSD.ORG Subject: Re: printing Message-ID: <Pine.BSF.3.96.971005231730.3108O-100000@chain> In-Reply-To: <19971005131150.31271@my.domain>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 5 Oct 1997 rknebel@mail.microserve.net wrote: >When I try to print postscript ie from xv or netscape I get about 6 pages >0f ghostscript error messages. I use this, which works quite well. In whatever printer application I want to use, I specify nonpsprint. This sends the print job to printer lp (the default). A nonpsprint file (shell script) #!/bin/sh /usr/local/bin/nonpsconvert | lpr -Plp nonpsconvert (also a shell script) #!/bin/sh read first_line first_two_chars=`expr "$first_line" : '\(..\)'` if [ "$first_two_chars" = "%!" ]; then /usr/local/bin/ps2pcl && exit 0 else /usr/local/bin/a2ps -ns -nH -d -1 -F9 -p -q | /usr/local/bin/ps2pcl && exit 0 fi exit 2 ps2pcl (also a shell script) #! /bin/sh gs -q -sDEVICE=djet500c -r300x300 -sOutputFile=- -SPAPERSIZE=a4 - This works quite nicely for me. --- Khetan Gajjar - whois kg1779 | khetan@iafrica.com or khetan@os.org.za http://chain.iafrica.com/~khetan | PGPKey : finger khetan@chain.iafrica.com UUNET Internet Africa Support | FreeBSD enthusiast-www2.za.freebsd.org Unix is user friendly; it's just selective about who it calls a friend!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971005231730.3108O-100000>