summaryrefslogtreecommitdiff
path: root/Resource
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2022-08-04 16:55:07 +0100
committerChris Liddell <chris.liddell@artifex.com>2022-08-05 12:15:45 +0100
commitc5e89eed9ce970a8083479b44999aaf24c244d42 (patch)
treedc7de59123edfcb6cef50b9671a5fee6df07bbb6 /Resource
parentfef972f530fc7010de37556f7d62f0c40624e358 (diff)
downloadghostpdl-c5e89eed9ce970a8083479b44999aaf24c244d42.tar.gz
Fix breakage caused by 418295bc6028635222e1d871b73230c761a87242
The page device dictionary doesn't necessarily contain an /Overprint key, so check it exists before we try to use it.
Diffstat (limited to 'Resource')
-rw-r--r--Resource/Init/pdf_draw.ps2
1 files changed, 1 insertions, 1 deletions
diff --git a/Resource/Init/pdf_draw.ps b/Resource/Init/pdf_draw.ps
index 691a8bd6a..117b362cf 100644
--- a/Resource/Init/pdf_draw.ps
+++ b/Resource/Init/pdf_draw.ps
@@ -1421,7 +1421,7 @@ currentdict end readonly def
% untouched as set above.
%
currentpagedevice dup
- /Overprint get /simulate eq
+ /Overprint .knownget {/simulate eq}{false} ifelse
1 index /PageSpotColors known not and
exch /PageUsesOverprint .knownget not { //false } if
and