summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2022-03-09 16:25:45 +0000
committerChris Liddell <chris.liddell@artifex.com>2022-03-09 18:14:34 +0000
commit1c37477a3afa8b57a5093860997f2fce59259f2e (patch)
treeb2fad1f682031f1c698de5171ca598d1010931e3
parent83ec9787bcd4b2d41aefa8337acc51c158697ca5 (diff)
downloadghostpdl-1c37477a3afa8b57a5093860997f2fce59259f2e.tar.gz
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.
-rw-r--r--Resource/Init/pdf_main.ps2
1 files changed, 1 insertions, 1 deletions
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