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

LAB color space produces wrong colors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.0.0
    • None
    • Rendering
    • None

    Description

      The attached example uses LAB colors. When rendering it using PDFToImage, the result is kind of violet, instead of black text and yellow rectangles (see the attached jpeg).

      When comparing 1.8 sources with current trunk, the incoming values are "scaled to range" in trunk PDLab#toRGB(), while this was not the case in 1.8 PDColorState and ColorSpaceLab. As far as I can tell, in 1.8 the values were only "clipped to range" in ColorSpaceLab#toCIEXYZ().

      If I remove the scaling in 2.0 the rendering is correct.

      Attachments

        1. 000352.pdf
          65 kB
          Petr Slaby
        2. 0003521.jpg
          5.45 MB
          Petr Slaby

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pslabycz Petr Slaby
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: