You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2014/11/13 20:14:34 UTC

[jira] [Comment Edited] (PDFBOX-2496) PNG filesize is larger

    [ https://issues.apache.org/jira/browse/PDFBOX-2496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14210175#comment-14210175 ] 

John Hewson edited comment on PDFBOX-2496 at 11/13/14 7:13 PM:
---------------------------------------------------------------

Simon, can you upload the PNG files too?

Yes, the parameters to PDFToImage have changed, i.e., {{-imageType}} is now {{-format}}. This was done to make PDFBox more consistent with other tools, and also Java's own terminology (in Java an image 'type' refers to the color model, e.g. int-packed ARGB, whereas an image 'format' refers to the file format on disk, e.g. PNG). However, please note that the old parameters are still supported - we didn't want to break existing shell scripts. Indeed, that's presumably why Tilman didn't know they'd changed.


was (Author: jahewson):
Simon, can you upload the PNG files too?

Yes, the parameters to PDFToImage have changed, i.e., {{-imageType}} is now {{-format}}. This was done to make PDFBox more consistent with other tools, and also Java's own terminology (in Java an image 'type' refers to the color model, e.g. int-packed ARGB, whereas an image 'format' refers to the file format on disk, e.g. PNG). However, please note that the old parameters are still supported - we didn't want to break existing shell scripts.

> PNG filesize is larger
> ----------------------
>
>                 Key: PDFBOX-2496
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2496
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.0
>            Reporter: simon steiner
>         Attachments: simple.pdf
>
>
> java -jar ~/pdf-box-svn/app/target/pdfbox-app-2.0.0-SNAPSHOT.jar PDFToImage -format png simple.pdf
> java -jar pdfbox/app/target/pdfbox-app-1.8.8-SNAPSHOT.jar PDFToImage -imageType png simple.pdf
> 2.0 is 656KB
> 1.8 is 402KB



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)