[
https://issues.apache.org/jira/browse/PDFBOX-1998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13945764#comment-13945764
]
Tilman Hausherr commented on PDFBOX-1998:
-----------------------------------------
Heh heh :-) I found this in PDXObjectImage.java:
{code}
// assume default values ([0,1]) for the DecodeArray
// TODO DecodeArray == [1,0]
{code}
I tried to replace the line below that one with this and it works, but I'd like
to hear another opinion because my day job doesn't involve [Porter/Duff
rules|http://ssp.impulsetrain.com/porterduff.html]:
{code}
COSArray decode = getDecode();
if (decode != null && decode.getInt(0) == 1)
graphics.setComposite(AlphaComposite.DstOut);
else
graphics.setComposite(AlphaComposite.DstIn);
{code}
> PDF rendering with reversed colors
> ----------------------------------
>
> Key: PDFBOX-1998
> URL: https://issues.apache.org/jira/browse/PDFBOX-1998
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 1.8.4, 1.8.5
> Reporter: Tilman Hausherr
> Attachments: PDFBOX-1998.PDF
>
>
> The attached PDF (from Étienne Landry on the user mailing list) is rendered
> in w/b instead of b/w. This does not happen in the 2.0 version.
--
This message was sent by Atlassian JIRA
(v6.2#6252)