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

proba edited comment on PDFBOX-2078 at 5/15/14 1:55 PM:
--------------------------------------------------------

Using ImageIOUtil fixed the DPI issue, thank you.

Now I figured out a colour changing problem for myself in barcode pdf to image 
transformation, but thats a different story.

If you happen to know the answer though that would be lovely.

The barcode colours on the picture get inverted (black goes to white and white 
goes to black) which i saw was reported before on these forums.
Is there an easy known solution to this?


was (Author: proba):
Using ImageIOUtil fixed the DPI issue, thank you.

Now I figured out a colour changing problem for myself in barcode pdf to image 
transformation, but thats a different story.

If you happen to know the answer that would be lovely.

The barcode colours on the picture get inverted (black goes to white and white 
goes to black) which i saw was reported before on these forums.
Is there an easy known solution to this?

> DPI always 96
> -------------
>
>                 Key: PDFBOX-2078
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2078
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.8.5
>            Reporter: proba
>
> I'm trying to convert a 1 page pdf report to an image using convertToImage.
> My used command goes as follows:
>  BufferedImage bi=page.convertToImage(BufferedImage.TYPE_INT_RGB, 300);
> No matter how much i change the resolution (300 in the example), the DPI 
> stays the same, even though the quality and the dimensions of the picture 
> change.
> Adding a comparison between a 96 resolution picture and what should be a 300 
> resolution picture (notice the DPI)
> http://i58.tinypic.com/9sv339.png



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to