[Poppler-bugs] [Bug 43393] New: pdftoppm scale-to-x with correct aspect-ratio

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Nov 30 14:23:11 PST 2011


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

             Bug #: 43393
           Summary: pdftoppm scale-to-x with correct aspect-ratio
    Classification: Unclassified
           Product: poppler
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: medium
         Component: utils
        AssignedTo: poppler-bugs at lists.freedesktop.org
        ReportedBy: krystian.sikora at gmail.com


I'm trying to use pdftoppm to scale my pdfs to width 800 with correct aspect
ratio but I noticed that pdftoppm -scale-to-x doesn't handle aspect ratio at
all and stretches the image.
My solution was to use pdfinfo to get the size and calculate correct scale-to
box which worked well until I needed to deal with pdfs with wrong meta data,
for example mediabox and pagesize swapped, width is actually height and vice
versa.

If I don't specify any parameters or use -scale-to parameter the output is
correct. If -scale-to parameter would accept two sizes -scale-to=x,y then I
could use 800,100000 or something similar, it would be very handy to be able to
scale to fixed with and maintain aspect ratio whether it would be done with
-scale-to-x parameter alone or with extended version of -scale-to parameter or
event introduce new parameter.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list