Date: Tue, 25 Aug 1998 08:56:02 +0300 From: ADM <dima@transe.tm.odessa.ua> To: freebsd-questions@FreeBSD.ORG Subject: Printing from FreeBSD to Windows NT Workstation Message-ID: <35E251F2.78031151@transe.tm.odessa.ua>
next in thread | raw e-mail | index | archive | help
I have a printer LaserJet 6p connected to Windows NT Workstation 4.0 (SP3) There is a service of TCP/IP printing started on it. When i try to print any plain txt file from my FreeBSD box , everything seems to be allright. But when i need to print some graphics or PS files printer start to print something like PCL commands, not correct image. here is a fragment: --------- .?k2G.%-12345@PJL ENTER LANGUAGE = PCLXL )HP-PCL XL;1;1 NX...... special charecters .... and so on. --------- When I connect this printer dirrectly to FreeBSD box it prints everything well. In all cases i use the same if filters as described in handbook ---------------------------------- 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=lj5mono -sOutputFile=- - \ ?? exit 0 else echo $first_line ?? cat ?? printf "\f" ?? exit 0 fi exit 2 ---------------------- Can any one tell how to fix it? 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?35E251F2.78031151>