summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Johnston <ray.johnston@artifex.com>2012-03-13 10:13:06 -0700
committerChris Liddell <chris.liddell@artifex.com>2012-03-15 11:54:25 +0000
commit61044f9a49db77b96fda45313570fc632c68b9f6 (patch)
treec59d59ab8c7bc7236cbe86ea0c9f91035b07a2f5
parent6c911e4ae0638176172ddbc7d755ed102deaaafa (diff)
Make -dPDFA backwards compatible, equivalent to -dPDFA=1
As of commit d0371d9 the actual device parameter was changed to be an int. This change detects if it is defined as a boolean and sets it to 1 if so.
-rw-r--r--gs/Resource/Init/gs_init.ps4
1 files changed, 4 insertions, 0 deletions
diff --git a/gs/Resource/Init/gs_init.ps b/gs/Resource/Init/gs_init.ps
index fd4a7df2e..18c93a8d5 100644
--- a/gs/Resource/Init/gs_init.ps
+++ b/gs/Resource/Init/gs_init.ps
@@ -1263,6 +1263,10 @@ end
(END FONTDIR/ENCS) VMDEBUG
+% Special handling for device parameters. Must follow definition of 'type'
+% make -dPDFA equivalent to -dPDFA=1 (backwards compatible)
+currentdict /PDFA known { PDFA type /booleantype eq { /PDFA 1 def } if } if
+
% Construct a dictionary of all available devices.
% These are (read-only) device prototypes that can't be
% installed or have their parameters changed. For this reason,