[gs-cvs] rev 7967 - branches/gs-esp-gpl-merger/lib
till at ghostscript.com
till at ghostscript.com
Sun May 13 16:42:09 PDT 2007
Author: till
Date: 2007-05-13 16:42:09 -0700 (Sun, 13 May 2007)
New Revision: 7967
Modified:
branches/gs-esp-gpl-merger/lib/gs_setpd.ps
Log:
Let Mike Sweets policy changes for CUPS (PolicyNotFound=7, PageSize=7) only
be used when Ghostscript is called with "-dNOMEDIAATTRS" on the command line
(the way the CUPS filters scripts, cups/psto*, call Ghostscript). Otherwise
the standard values (PolicyNotFound=1, PageSize=0) are used. This assures
compatibility of Ghostscript with non-CUPS applications.
Modified: branches/gs-esp-gpl-merger/lib/gs_setpd.ps
===================================================================
--- branches/gs-esp-gpl-merger/lib/gs_setpd.ps 2007-05-13 23:33:13 UTC (rev 7966)
+++ branches/gs-esp-gpl-merger/lib/gs_setpd.ps 2007-05-13 23:42:09 UTC (rev 7967)
@@ -171,10 +171,13 @@
% the default policy to "7" (impose) to avoid numerous problems with
% printing within CUPS...
%
- % /PolicyNotFound 1
- % /PageSize 0
- /PolicyNotFound 7
- /PageSize 7
+ NOMEDIAATTRS {
+ /PolicyNotFound 7
+ /PageSize 7
+ } {
+ /PolicyNotFound 1
+ /PageSize 0
+ } ifelse
/PolicyReport {
dup /.LockSafetyParams known {
% Only possible error is invalidaccess
More information about the gs-cvs
mailing list