From 1c37477a3afa8b57a5093860997f2fce59259f2e Mon Sep 17 00:00:00 2001 From: Ken Sharp Date: Wed, 9 Mar 2022 16:25:45 +0000 Subject: Fix 'knownoget' for pdfi with Ghostscript As per commit 958c044dbbf140b893874c6d634ac71400ea5a12 but this time for the definition of knownoget. In fact, given the way pdf2dsc uses this, it doesn't actually cause a problem, but leaving junk on the stack is bad practice, so let's fix it. --- Resource/Init/pdf_main.ps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resource/Init/pdf_main.ps b/Resource/Init/pdf_main.ps index 895b001f7..3259c0fe3 100644 --- a/Resource/Init/pdf_main.ps +++ b/Resource/Init/pdf_main.ps @@ -1007,7 +1007,7 @@ systemdict /NEWPDF known not {/NEWPDF //true def} if % These are also for the benefit of pdf2dsc, which assumes they % are available. - /knownoget {2 copy known {get //true}{pop //false}ifelse} bind def + /knownoget {2 copy known {get //true}{pop pop //false}ifelse} bind def /pget {2 copy known {get //true}{pop pop //false}ifelse}bind def newpdf_gather_parameters -- cgit v1.2.1