You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/01/09 16:18:50 UTC
[jira] [Created] (PDFBOX-1839) PDFImageWriter default BufferedImage
type makes output looks bad
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)