[gs-cvs] rev 9396 - trunk/gs/base

ken at ghostscript.com ken at ghostscript.com
Mon Jan 26 09:33:36 PST 2009


Author: ken
Date: 2009-01-26 09:33:36 -0800 (Mon, 26 Jan 2009)
New Revision: 9396

Modified:
   trunk/gs/base/gdevpsu.c
Log:
Fix (pswrite): Incorrect PageBoundingBox comment location

Details:
The new %%PageBoundingBox comment was being emitted between a %%BeginPageSetup and %%EndPageSetup comment pair, which was causing it to be ignored by CUPS.

Moved the bounding box in front of the page setup comment

Expected Differences
None


Modified: trunk/gs/base/gdevpsu.c
===================================================================
--- trunk/gs/base/gdevpsu.c	2009-01-26 17:16:47 UTC (rev 9395)
+++ trunk/gs/base/gdevpsu.c	2009-01-26 17:33:36 UTC (rev 9396)
@@ -284,10 +284,11 @@
     int width = (int)(dev->width * 72.0 / dev->HWResolution[0] + 0.5);
     int height = (int)(dev->height * 72.0 / dev->HWResolution[1] + 0.5);
 
-    pprintld2(s, "%%%%Page: %ld %ld\n%%%%BeginPageSetup\n", page, page_ord);
+    pprintld2(s, "%%%%Page: %ld %ld\n", page, page_ord);
     if (!pdpc->ProduceEPS)
 	pprintld2(s, "%%%%PageBoundingBox: 0 0 %ld %ld\n", width, height);
 
+    stream_puts(s, "%%%%BeginPageSetup\n");
     /*
      * Adobe's documentation says that page setup must be placed outside the
      * save/restore that encapsulates the page contents, and that the



More information about the gs-cvs mailing list