You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andras Balogh (JIRA)" <ji...@apache.org> on 2011/05/12 17:02:47 UTC
[jira] [Commented] (PDFBOX-744) Landscape PDF Rasterized as
Portrait
[ 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