Tilman Hausherr created PDFBOX-1839:
---------------------------------------

             Summary: PDFImageWriter default BufferedImage type makes output 
looks bad
                 Key: PDFBOX-1839
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1839
             Project: PDFBox
          Issue Type: Bug
         Environment: XP, JDK7 45
            Reporter: Tilman Hausherr
            Priority: Minor
         Attachments: Kommunikationsbedingungen-Einlagen_FIDOR-Bank.pdf, 
Kommunikationsbedingungen-Einlagen_FIDOR-Bank.pdf-1-bad.png, 
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)

Reply via email to