[
https://issues.apache.org/jira/browse/PDFBOX-744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13032445#comment-13032445
]
Andras Balogh commented on PDFBOX-744:
--------------------------------------
The patch does not look ok, this part:
graphics.rotate(Math.toRadians(rotation), retval.getWidth()/2,
retval.getWidth()/2);
It uses getWidth() twice.
For us it worked like:
graphics.rotate(Math.toRadians(rotation),retval.getWidth()/2,retval.getHeight()/2);
graphics.translate((retval.getWidth()-retval.getHeight())/2,(retval.getHeight()-retval.getWidth())/2);
> Landscape PDF Rasterized as Portrait
> ------------------------------------
>
> Key: PDFBOX-744
> URL: https://issues.apache.org/jira/browse/PDFBOX-744
> Project: PDFBox
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 1.2.0
> Reporter: Vincent Hennebert
> Attachments: rasterize-landscape.diff
>
>
> The Rotate entry on Page objects is not taken into account when converting a
> PDF into an image.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira