[ https://issues.apache.org/jira/browse/PDFBOX-1839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler resolved PDFBOX-1839. ---------------------------------------- Resolution: Fixed Fix Version/s: 2.0.0 1.8.4 I applied patch in revisions 1557339 (trunk) and 1557341 (1.8 branch) as proposed. Thanks for the contribution! > PDFImageWriter default BufferedImage type makes output colors look poor > ----------------------------------------------------------------------- > > Key: PDFBOX-1839 > URL: https://issues.apache.org/jira/browse/PDFBOX-1839 > Project: PDFBox > Issue Type: Improvement > Environment: XP, JDK7 45 > Reporter: Tilman Hausherr > Assignee: Andreas Lehmkühler > Priority: Minor > Fix For: 1.8.4, 2.0.0 > > Attachments: Kommunikationsbedingungen-Einlagen_FIDOR-Bank.pdf, > Kommunikationsbedingungen-Einlagen_FIDOR-Bank.pdf-1-bad.png, > PDFImageWriter.patch, > kommunikationsbedingungen-einlagen_fidor-bank.pdf-1-good.png > > > The default imageType for PDFImageWriter.writeImage() is 8, which is > TYPE_USHORT_565_RGB. I suggest to use TYPE_INT_RGB instead. The current > default might create a poor user experience. > I also suggest that the type and the resolution ("screen resolution or 96 if > not detected") be added to the javadoc. > Finally, the variable "imageType" is used with two different meanings in that > file: once as a string for the format, once as int for the BufferedImage type. -- This message was sent by Atlassian JIRA (v6.1.5#6160)