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 (Created) (JIRA)" <ji...@apache.org> on 2012/03/29 09:36:14 UTC

[jira] [Created] (PDFBOX-1270) PDPage.convertToImage() : Parameter "resolution" should be 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


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

        

[jira] [Updated] (PDFBOX-1270) Change internal page resolution to float everywhere

Posted by "Benjamin Pick (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Description: 
Was: PDPage.convertToImage() : Parameter "resolution" should be float

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. 

  was:
Was: PDPage.convertToImage() : Parameter "resolution" should be float
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. 

    
> Change internal page resolution to float everywhere
> ---------------------------------------------------
>
>                 Key: PDFBOX-1270
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1270
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 1.6.0
>            Reporter: Benjamin Pick
>            Priority: Minor
>              Labels: PDFToImage
>         Attachments: PDFBox-1270-2.patch
>
>
> Was: PDPage.convertToImage() : Parameter "resolution" should be float
> 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

        

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

Posted by "Benjamin Pick (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

          Component/s: PDModel
               Labels: PDFToImage  (was: )
    Affects Version/s: 1.6.0
    
> PDPage.convertToImage() : Parameter "resolution" should be float
> ----------------------------------------------------------------
>
>                 Key: PDFBOX-1270
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1270
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 1.6.0
>            Reporter: Benjamin Pick
>            Priority: Minor
>              Labels: PDFToImage
>         Attachments: PDFBox-1270-2.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

        

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

Posted by "Benjamin (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Attachment:     (was: PDFBox-1270-1.patch)
    
> 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-2.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

        

[jira] [Commented] (PDFBOX-1270) Change internal page resolution to float everywhere

Posted by "Benjamin Pick (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-1270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13259469#comment-13259469 ] 

Benjamin Pick commented on PDFBOX-1270:
---------------------------------------

Verified that patch still applies cleanly to current HEAD.
                
> Change internal page resolution to float everywhere
> ---------------------------------------------------
>
>                 Key: PDFBOX-1270
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1270
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 1.6.0
>            Reporter: Benjamin Pick
>            Priority: Minor
>              Labels: PDFToImage
>         Attachments: PDFBox-1270-2.patch
>
>
> Was: PDPage.convertToImage() : Parameter "resolution" should be float
> 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

        

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

Posted by "Benjamin (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Attachment: PDFBox-1270-2.patch

Remove unused imports
                
> 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, PDFBox-1270-2.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

        

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

Posted by "Benjamin (Updated) (JIRA)" <ji...@apache.org>.
     [ 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

        

[jira] [Updated] (PDFBOX-1270) Change internal page resolution to float everywhere

Posted by "Benjamin Pick (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Description: 
Was: PDPage.convertToImage() : Parameter "resolution" should be float
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. 

  was:
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. 

        Summary: Change internal page resolution to float everywhere  (was: PDPage.convertToImage() : Parameter "resolution" should be float)
    
> Change internal page resolution to float everywhere
> ---------------------------------------------------
>
>                 Key: PDFBOX-1270
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1270
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 1.6.0
>            Reporter: Benjamin Pick
>            Priority: Minor
>              Labels: PDFToImage
>         Attachments: PDFBox-1270-2.patch
>
>
> Was: PDPage.convertToImage() : Parameter "resolution" should be float
> 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