pdftoppm: incorrect page size regression when using -scale-to
With !807 (merged) I am seeing different behavior when using -scale-to
. Following that fix there is white padding in the output that was not present previously and is not present in the source PDF.
I imagine the fix might be for the scaleTo != 0
case to assign only the larger of pg_w
or pg_h
to scaleTo
while calculating the other based on resolution as before.
Command:
utils/pdftoppm -singlefile -scale-to 500 -png ./test.pdf
Input: test.pdf
Output:
Output on master (as of 104fc940) |
---|
Output after reverting e21c8365 |
---|
Thanks for looking!