From c5e89eed9ce970a8083479b44999aaf24c244d42 Mon Sep 17 00:00:00 2001 From: Chris Liddell Date: Thu, 4 Aug 2022 16:55:07 +0100 Subject: 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. --- Resource/Init/pdf_draw.ps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Resource') 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 -- cgit v1.2.1