Bug 691537 - Misrendered PDF (related to masks/blending?)
Summary: Misrendered PDF (related to masks/blending?)
Status: RESOLVED FIXED
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: unspecified
Hardware: PC Windows 7
: P4 normal
Assignee: Tor Andersson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-07 23:24 UTC by Krzysztof Kowalczyk
Modified: 2011-02-07 16:11 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
pdf that is misrendered (1.93 MB, application/pdf)
2010-08-07 23:25 UTC, Krzysztof Kowalczyk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Kowalczyk 2010-08-07 23:24:26 UTC
It was reported here: http://fofou.appspot.com/sumatrapdf/topic?id=879322

A PDF from http://www.mediafire.com/?br10bonn801mev3 is mis-rendered. It looks much better than when using mupdf code from the past, but with mupdf trunk as of today (8/7/2010) it still has rendering issues when compared to Adobe, especially on the last page.
Comment 1 Krzysztof Kowalczyk 2010-08-07 23:25:58 UTC
Created attachment 6630 [details]
pdf that is misrendered

Attaching PDF in case the original goes away.
Comment 2 zeniko 2011-02-07 02:52:06 UTC
The attached document looks much better if the incompatible Indexed colorspace is simply ignored (cf. http://code.google.com/p/sumatrapdf/source/detail?r=2761 ).
Comment 3 Tor Andersson 2011-02-07 16:11:14 UTC
Ignoring the indexed colorspace makes the page readable, but the effect from the softmasks is inverted.

I tried hardcoding the 0 (black) value to be transparent when expanding the indexed pixmap and then it looks almost correct. This is the same area that should be masked out in image 135 with the softmask image 147.

This mask was simply not copied over when expanding the indexed pixmap to full color!