Petr Slaby created PDFBOX-2180:
----------------------------------
Summary: LAB color space produces wrong colors
Key: PDFBOX-2180
URL: https://issues.apache.org/jira/browse/PDFBOX-2180
Project: PDFBox
Issue Type: Bug
Components: PDModel, Rendering
Affects Versions: 2.0.0
Reporter: Petr Slaby
Priority: Minor
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.
--
This message was sent by Atlassian JIRA
(v6.2#6252)