You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Benjamin (Updated) (JIRA)" <ji...@apache.org> on 2012/03/29 11:42:26 UTC

[jira] [Updated] (PDFBOX-1270) PDPage.convertToImage() : Parameter "resolution" should be float

     [ https://issues.apache.org/jira/browse/PDFBOX-1270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin updated PDFBOX-1270:
-----------------------------

    Attachment: PDFBox-1270-1.patch

Changed method signature. Also, converted all instances of Dimension (awt/int accuracy) to a new class DimensionFloat (float).
                
> PDPage.convertToImage() : Parameter "resolution" should be float
> ----------------------------------------------------------------
>
>                 Key: PDFBOX-1270
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1270
>             Project: PDFBox
>          Issue Type: Improvement
>            Reporter: Benjamin
>            Priority: Minor
>         Attachments: PDFBox-1270-1.patch
>
>
> Is there any specific reason why the method signature reads "int resolution", not "float resolution"?
> I want to create an image of a certain pixel size, so it would be easier/faster to calculate the exact resolution instead of resizing the image afterwards. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira