summaryrefslogtreecommitdiff
path: root/Resource
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2022-09-06 14:39:33 +0100
committerKen Sharp <ken.sharp@artifex.com>2022-09-06 15:16:27 +0100
commit7c33727834bcf59a79402c46fdcde25291805d35 (patch)
tree1bef335f05f7b68daed06e8f22528bf361e0b720 /Resource
parentb9097cddb67a7a3fb22524c8753caa3513ce6797 (diff)
downloadghostpdl-7c33727834bcf59a79402c46fdcde25291805d35.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.
Diffstat (limited to 'Resource')
-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
}
{