Date: Tue, 16 Mar 1999 22:37:09 -0800 From: Mahesh Bhaskarpandit <mahesh_bhaskarpandit@dmcwave.com> To: freebsd-questions@FreeBSD.ORG Subject: Question on printer configuration Message-ID: <36EF4D95.11150F60@dmcwave.com>
next in thread | raw e-mail | index | archive | help
I have a Canon BJC 250 printer attached to my PC with FreeBSD 2.2.5. After all the configuration described in handbook, I can print text properly through a simple filter. I am not able to print postScript , inspite of the filter using ghostscript interpeter. My filter has the following lines: =================================================== # Read first two characters of the file # read first_line first_two_chars=`expr "$first_line" : '\(..\)'` if [ "$first_two_chars" = "%!" ]; then # # It is PostScript; use Ghostscript to scan-convert and print it # /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=bjc600 -sOutputFile=- - && e xit 0 else # # Plain text or HP/PCL, so just print it directly; print a form # at the end to eject the last page. # echo $first_line && cat && printf "\f" && exit 0 fi ===================================================== I have tried manually executing the command : /usr/local/bin/gs -sDEVICE=bjc600 test.ps but nothing happens. I have tried with other device names also. The supported devices by ghostscript are (with gs -h) Available devices: x11 x11alpha x11cmyk x11gray2 x11mono sxlcrt ap3250 appledmp bj10e bj200 bjc600 bjc800 ccr cdeskjet cdjcolor cdjmono cdj500 cdj550 cdj850 cp50 declj250 deskjet djet500 djet500c dnj650c epson eps9mid eps9high epsonc ibmpro imagen iwhi iwlo iwlq jetp3852 laserjet la50 la70 la75 la75plus lbp8 lips3 ln03 lj250 ljet2p ljet3 ljet3d ljet4 lj4dith ljetplus lj5mono lj5gray lp2563 lp8000 m8510 necp6 oce9050 oki182 okiibm paintjet pj pjetxl pjxl pjxl300 pxlmono pxlcolor r4081 sj48 st800 stcolor t4693d2 t4693d4 t4693d8 tek4696 uniprint xes dfaxhigh dfaxlow faxg3 faxg32d faxg4 tiffcrle tiffg3 tiffg32d tiffg4 epswrite pdfwrite pswrite bit bitrgb bitcmyk bmpmono bmp16 bmp256 bmp16m cgmmono cgm8 cgm24 cif jpeg jpeggray miff24 mgrmono mgrgray2 mgrgray4 mgrgray8 mgr4 mgr8 pcxmono pcxgray pcx16 pcx256 pcx24b pcxcmyk pbm pbmraw pgm pgmraw pgnm pgnmraw pnm pnmraw ppm ppmraw pkm pkmraw pngmono pnggray png16 png256 png16m psmono psgray sgirgb tiff12nc tiff24nc tifflzw tiffpack nullpage I have tried changing the "-s" option with the gs command, but nothing is printed on the printer. Am I missing something? What is the right filter to print both text and postscript on a Canon (BJC-xxx) printer? Thanks, Mahesh To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36EF4D95.11150F60>