[gs-cvs] rev 7849 - trunk/gs/src

henrys at ghostscript.com henrys at ghostscript.com
Sat Apr 14 23:38:03 PDT 2007


Author: henrys
Date: 2007-04-14 23:38:02 -0700 (Sat, 14 Apr 2007)
New Revision: 7849

Modified:
   trunk/gs/src/gdevcdj.c
Log:
The paper size was hard coded to A4 instead of using the paper size in the
printer device state.  Thanks to Leif Harcke for the patch.  The HP
and Canon color printer drivers are not tested so there are no
expected regression differences.


Modified: trunk/gs/src/gdevcdj.c
===================================================================
--- trunk/gs/src/gdevcdj.c	2007-04-15 05:42:43 UTC (rev 7848)
+++ trunk/gs/src/gdevcdj.c	2007-04-15 06:38:02 UTC (rev 7849)
@@ -2128,7 +2128,7 @@
   switch (ptype) {
   case LJ4DITH:
     /* Page size, orientation, top margin & perforation skip */
-    fprintf(prn_stream, "\033&l26A\033&l0o0e0L\033*r0F" );
+    fprintf(prn_stream, "\033&l%dA\033&l0o0e0L\033*r0F", paper_size);
     fprintf(prn_stream, "\033*p0x0Y" ); /* These Offsets are hacked ! */
     fprintf(prn_stream, "\033&u600D\033*r1A" );
     /* Select data compression */



More information about the gs-cvs mailing list