[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Print Postscript in draft-mode on Canpn BJ200, today!



Hello,

I have spent some time in the ghostscript source trying to make my BJ200e
print Postscript in draft-mode. Anyone who uses the BJ200 knows it can be a
real ink-hog when priniting some documents, and most of the printing I do can
be done in draft mode.

If you are interested in how, please email me. Right now, there is no way to
select the mode at print time. You must recompile gs and replace your
gs.real executable with the new one.

If anyone has a BJ200 Programmers Manual, I would like to make sure that the
printer codes I used are the correct ones. Here's what I used in the
gsdevbj10.c file:

#ifdef USE_FACTORY_DEFAULTS
        /* Check for U.S. letter vs. A4 paper. */
		fwrite(( pdev->width / pdev->x_pixels_per_inch <= 8.4 ?
		"\033[K\002\000\000\044"        /*A4--DIPswitch defaults*/ :
		"\033[K\002\000\004\044"        /*letter--factory defaults*/),
               1, 7, prn_stream);
#else
		/* I added the last 2 lines */
		fwrite("\033[K\002\000\000\044", 1, 7, prn_stream);
		fwrite ("\033=\001\000\045", 5, 1, prn_stream);
		fwrite("\033I\000", 1, 3, prn_stream);
#endif

I would really like to make this an option to gs at print time. That way, I
can set up an entry in /etc/printcap for a ps-draft printer.

-- 
Jim Foltz <aa204@acorn.net>


Reply to: