[Poppler-bugs] [Bug 95268] New: pdftoppm: X and Y scaling are swapped

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed May 4 20:27:01 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=95268

            Bug ID: 95268
           Summary: pdftoppm: X and Y scaling are swapped
           Product: poppler
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: utils
          Assignee: poppler-bugs at lists.freedesktop.org
          Reporter: jason at aquaticape.us

A similar bug for pdftocairo was fixed in bug #94655.  The ZIP archive in that
bug (https://bugs.freedesktop.org/attachment.cgi?id=122468) has two files,
good.pdf and bad.pdf.

Running the following command:

  pdftoppm -png -singlefile -f 1 -scale-to-x 1275 -scale-to-y 1650 bad.pdf bad

creates a 1651 x 1275 png image.  With those -scale-to-x/y arguments, it should
be 1275 x 1651.  The x and y scaling gets swapped because the PDF is internally
rotated.  The page dictionary specifies /Rotate 270.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20160504/7ae765ff/attachment.html>


More information about the Poppler-bugs mailing list