Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 6.0
-
Fix Version/s: 6.0
-
Component/s: Core/Parsing, Core/Rendering
-
Labels:None
-
Environment:any
-
Support Case References:
-
Salesforce Case Reference:
Description
This issue came in through support. The PDF displays a fairly complex architecture plan and has server section that are appearing black instead of light grey. The issue is likely related to ColorSpace issue or a pattern paint issue where tiling image is not being correctly decoded.
Further investigation is needed to isolate the reason for the paint issue.
Further investigation is needed to isolate the reason for the paint issue.
This took a while to isolate given the 43,000 draw operations. I got lucky though and the colour issue can be reproduced in the first 713 bytes of content stream. It turns out that Separation colour space uses a tint value which we translate to the transparency for rgba. However in our Graphics state we copy colours using only the rgb values and ignore the alpha and thus black is being drawn.
Touched up the code and made sure we aren't doing the bad copy anywhere else. Also made a change to Separation colour space where we were changing the named colour value which I don't believe is correct.