Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-1839

PDFImageWriter default BufferedImage type makes output colors look poor

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.8.4, 2.0.0
    • None
    • None
    • XP, JDK7 45

    Description

      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.

      Attachments

        1. Kommunikationsbedingungen-Einlagen_FIDOR-Bank.pdf
          109 kB
          Tilman Hausherr
        2. Kommunikationsbedingungen-Einlagen_FIDOR-Bank.pdf-1-bad.png
          156 kB
          Tilman Hausherr
        3. kommunikationsbedingungen-einlagen_fidor-bank.pdf-1-good.png
          149 kB
          Tilman Hausherr
        4. PDFImageWriter.patch
          2 kB
          Tilman Hausherr

        Issue Links

          Activity

            People

              lehmi Andreas Lehmkühler
              tilman Tilman Hausherr
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: