diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2022-03-09 10:22:05 +0000 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2022-03-09 10:22:32 +0000 |
commit | 958c044dbbf140b893874c6d634ac71400ea5a12 (patch) | |
tree | 20e066e2a7c3756dec6e9b1fa5f36ff502df02ef /Resource | |
parent | 32a6f8989c9e40207e81984c5419381faab716a4 (diff) | |
download | ghostpdl-958c044dbbf140b893874c6d634ac71400ea5a12.tar.gz |
Fix 'pget' for pdfi with Ghostscript
The utility program pdf2dsc.ps expects that both pget and knownoget will
be available in the current dictionary after runpdfbegin is executed.
To facilitate this pdfi makes such a definition but, unfortunately, it
had a bug if the key was not found in the dictionary, leaving a copy
of the dictionary on the operand stack when it should not.
Fixed here. Thanks to William Bader for spotting the bug.
Diffstat (limited to 'Resource')
-rw-r--r-- | Resource/Init/pdf_main.ps | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Resource/Init/pdf_main.ps b/Resource/Init/pdf_main.ps index a82451d93..895b001f7 100644 --- a/Resource/Init/pdf_main.ps +++ b/Resource/Init/pdf_main.ps @@ -1008,7 +1008,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 - /pget {2 copy known {get //true}{pop //false}ifelse}bind def + /pget {2 copy known {get //true}{pop pop //false}ifelse}bind def newpdf_gather_parameters {.PDFInit} stopped |