[gs-cvs] gs/lib

Ray Johnston ray at casper.ghostscript.com
Wed Jul 10 16:06:01 PDT 2002

Update of /cvs/ghostscript/gs/lib
In directory casper:/tmp/cvs-serv26172/lib

Modified Files:
Log Message:
Fix: Adobe renders marks outside the ImagingBBox and QuarkXPress relies
on this. Maintain the ImagingBBox of the page device at the PostScript
level independently from the device parameter. There is a slight
incompatibility if programs that set the ImagingBBox incorrectly relied
on this causing clipping, which is prohibited by the PLRM. Programs that
wish to directly set the ImagingBBox device parameter can still do so
from C or from PS using the .putdeviceprops GS private operator.
Fixes SF bug 570829 for Artifex customer #411.

Index: gs_setpd.ps
RCS file: /cvs/ghostscript/gs/lib/gs_setpd.ps,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- gs_setpd.ps	21 Feb 2002 21:49:28 -0000	1.11
+++ gs_setpd.ps	10 Jul 2002 23:05:59 -0000	1.12
@@ -198,6 +198,7 @@
   /BeginPage {{.callbeginpage}} bind
   /EndPage {{.callendpage}} bind
   /Policies .defaultpolicies
+  /ImagingBBox null		% default value
 .dicttomark readonly def
 % Define currentpagedevice so it creates the dictionary on demand if needed,
@@ -388,6 +389,12 @@
   /ViewerPreProcess false
+  /ImagingBBox false	% This prevents the ImagingBBox value in the setpagedevice
+			% from affecting the device's ImagingBBox parameter, but
+			% does retain a 'shadow' copy at the PostScript level.
+			% This is done for Adobe compatibility since Adobe does
+			% render marks outside the ImagingBBox (and QuarkXpress
+			% relies on it).
 .dicttomark readonly def
 % Define access to device defaults.

More information about the gs-cvs mailing list