diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2021-03-24 09:49:07 +0000 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2021-03-24 09:53:43 +0000 |
commit | 4a172601676d3ba2c6d726ffdbae04517ef3ec07 (patch) | |
tree | 30fe521f78dee2702b50b0a08deb9b4f347b889e | |
parent | e1317d85a9acf0e3fbc6db65ff864964e1876fd6 (diff) | |
download | ghostpdl-4a172601676d3ba2c6d726ffdbae04517ef3ec07.tar.gz |
Fix the pdfi-inside-Ghostscript media setup for rotated pages
The calculation of the translation parameters was incorrect, leading
to content going missing.
-rw-r--r-- | Resource/Init/pdf_main.ps | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Resource/Init/pdf_main.ps b/Resource/Init/pdf_main.ps index bd8e42162..7953d8665 100644 --- a/Resource/Init/pdf_main.ps +++ b/Resource/Init/pdf_main.ps @@ -816,7 +816,7 @@ currentdict /EnablePageHandlerDevice undef 2 array astore dup /PageSize exch def currentdict end setpagedevice 270 rotate - 1 get neg 0 translate + 1 get add neg exch neg translate } { @@ -825,7 +825,7 @@ currentdict /EnablePageHandlerDevice undef 2 array astore dup /PageSize exch def currentdict end setpagedevice 180 rotate - aload pop neg exch neg exch translate + aload pop 3 -1 roll add neg 3 1 roll add neg exch translate } { @@ -833,7 +833,8 @@ currentdict /EnablePageHandlerDevice undef 2 array astore dup /PageSize exch def currentdict end setpagedevice 90 rotate - 0 get neg 0 exch translate + 0 get 3 -1 roll add + neg exch neg exch translate } ifelse } ifelse |