[ 
https://issues.apache.org/jira/browse/PDFBOX-2221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14066504#comment-14066504
 ] 

Tilman Hausherr commented on PDFBOX-2221:
-----------------------------------------

That file uses the /Lab colorspace. Values from there are converted to the XYZ 
colorspace, and then to RGB. The conversion to XYZ brings slightly negative X 
value. The RGB conversion, which is done by java itself, apparently can't 
handle this. Because the XYZ values [should not be 
negative|http://ninedegreesbelow.com/photography/icc-profile-negative-tristimulus.html],
 I set negative values to 0 and all is good. This was done in rev XXX for the 
trunk.

It is of course a mystery why the author of that pdf (Queen Beatrix) used an 
"exotic" colorspace for a b/w text.

> Text is pink from PDFBOX-234
> ----------------------------
>
>                 Key: PDFBOX-2221
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2221
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.0
>            Reporter: simon steiner
>
> java -jar ~/pdf-box-svn/app/target/pdfbox-app-2.0.0-SNAPSHOT.jar PDFToImage 
> STB336.pdf



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to