summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2022-09-06 14:39:33 +0100
committerChris Liddell <chris.liddell@artifex.com>2022-09-06 16:58:55 +0100
commita74da00e9b88cd9b0e684c8a7e8250d64145b238 (patch)
tree497186ab0256ed5281fe5c28fa440b65dfe26eb5
parent7b4f4e871ad5a0ec98f8e995e058ff87795fe272 (diff)
downloadghostpdl-a74da00e9b88cd9b0e684c8a7e8250d64145b238.tar.gz
GhostPDF + GS - fix PDFFitPage with square MediaBox
Bug #705849 "New PDF interpreter errors out with PDFFitPage" If the input PDF file had square media then we would correctly decide we did not need to rotate the media for a better fit, but we left the values we would normally use to calculate if rotation was required on the operand stack, resulting in an error. Pop the unused values.
-rw-r--r--Resource/Init/pdf_main.ps1
1 files changed, 1 insertions, 0 deletions
diff --git a/Resource/Init/pdf_main.ps b/Resource/Init/pdf_main.ps
index a60c702dd..be151d110 100644
--- a/Resource/Init/pdf_main.ps
+++ b/Resource/Init/pdf_main.ps
@@ -371,6 +371,7 @@ systemdict /NEWPDF known not {/NEWPDF //true def} if
3 1 roll eq
or % square media or square page, no point in rotating
{
+ pop pop pop pop
//false
}
{