1 diff -u ghostscript-7.07/lib/gs_init.ps ghostscript-7.07-easysw/lib/gs_init.ps
2 --- ghostscript-7.07/lib/gs_init.ps 2003-04-12 10:02:38.000000000 -0400
3 +++ ghostscript-7.07-easysw/lib/gs_init.ps 2003-11-14 16:38:44.000000000 -0500
5 currentdict /NOFONTPATH known /NOFONTPATH exch def
6 currentdict /NOGC known /NOGC exch def
7 currentdict /NOINTERPOLATE .knownget { /INTERPOLATE exch not def } if
8 +currentdict /NOMEDIAATTRS known /NOMEDIAATTRS exch def
9 currentdict /NOPAGEPROMPT known /NOPAGEPROMPT exch def
10 currentdict /NOPAUSE known /NOPAUSE exch def
11 currentdict /NOPLATFONTS known /NOPLATFONTS exch def
12 diff -u ghostscript-7.07/lib/gs_setpd.ps ghostscript-7.07-easysw/lib/gs_setpd.ps
13 --- ghostscript-7.07/lib/gs_setpd.ps 2003-04-12 10:02:38.000000000 -0400
14 +++ ghostscript-7.07-easysw/lib/gs_setpd.ps 2003-11-14 16:38:06.000000000 -0500
17 .dicttomark readonly def
19 -% Define the keys used in input attribute matching.
21 - /PageSize /MediaColor /MediaWeight /MediaType /InsertSheet
22 - % The following are documented in Adobe's supplement for v2017.
23 - /LeadingEdge /MediaClass
25 -% Define other keys used in media selection.
26 -/.inputselectionkeys [
27 - /MediaPosition /Orientation
30 -% Define the keys used in output attribute matching.
34 +% M. Sweet, Easy Software Products:
36 +% Define NOMEDIAATTRS to turn off the default (but unimplementable) media
37 +% selection policies for setpagedevice. This is used by CUPS to support
38 +% the standard Adobe media attributes.
40 + % Define only PageSize for input attribute matching.
44 + % Define no other keys used in media selection.
45 + /.inputselectionkeys [
46 + /noInputSelectionsKeys
49 + % Define no keys used in output attribute matching.
54 + % Define the keys used in input attribute matching.
56 + /PageSize /MediaColor /MediaWeight /MediaType /InsertSheet
57 + % The following are documented in Adobe's supplement for v2017.
58 + /LeadingEdge /MediaClass
60 + % Define other keys used in media selection.
61 + /.inputselectionkeys [
62 + /MediaPosition /Orientation
65 + % Define the keys used in output attribute matching.
71 % Define all the parameters that should always be copied to the merged
74 /PageSize false % obsolete alias for .MediaSize
75 /InputAttributes false
78 + % M. Sweet, Easy Software Products:
80 + % Treat LeadingEdge like PageSize so that a common Ghostscript driver
81 + % doesn't need the NOMEDIAATTRS definition.
83 + % { dup /PageSize eq
84 + { dup dup /PageSize eq exch /LeadingEdge eq or
86 { { 2 index /InputAttributes .knownget { null eq } { true } ifelse } }
89 % They are expected to consume the top 2 operands.
90 % NOTE: we currently treat all values other than 0, 1, or 7 (for PageSize)
91 % the same as 0, i.e., we signal an error.
93 +% M. Sweet, Easy Software Products:
95 +% Define NOMEDIAATTRS to turn off the default (but unimplementable) media
96 +% selection policies for setpagedevice. This is used by CUPS to support
97 +% the standard Adobe media attributes.
98 0 { % Set errorinfo and signal a configurationerror.
100 + % NOMEDIAATTRS means that the default policy is 7...
101 + pop 2 index exch 7 put
103 pop dup 4 index exch get 2 array astore
104 $error /errorinfo 3 -1 roll put
106 /setpagedevice load /configurationerror signalerror
109 1 { % Roll back the failed request to its previous status.
110 DEBUG { (Rolling back.) = pstack flush } if