Bug 332900 - rasterisation issue when using TikZ's doube line
Summary: rasterisation issue when using TikZ's doube line
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.18.3
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-01 13:16 UTC by Yasin Zähringer
Modified: 2014-06-02 20:31 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Problematic PDF (8.50 KB, application/pdf)
2014-04-01 13:17 UTC, Yasin Zähringer
Details
Screenshots at different zoom levels (60.35 KB, image/jpeg)
2014-04-01 13:18 UTC, Yasin Zähringer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yasin Zähringer 2014-04-01 13:16:46 UTC
Okular does not correctly rasterise the attached PDF depending on the zoom level. The problem is that two rectangles with slightly different width are drawn on top of each other to produce an equal sign. It seems to be an Okular-only issue. (I have not checked that many readers, in particular I haven't checked Adobe Acrobat.)
The LaTeX code to produce the PDF can be found here [1].

[1] http://tex.stackexchange.com/questions/168071/tikz-double-line-rasterisation-issue

Reproducible: Always

Steps to Reproduce:
Load the PDF and try different zoom levels. (The 'bad' zoom levels seem to dependent on the screen resolution.) On my netbook (1024x600), the issue appears below 200%.
Actual Results:  
See the attached jpeg.
Comment 1 Yasin Zähringer 2014-04-01 13:17:51 UTC
Created attachment 85887 [details]
Problematic PDF
Comment 2 Yasin Zähringer 2014-04-01 13:18:55 UTC
Created attachment 85888 [details]
Screenshots at different zoom levels
Comment 3 Christoph Feck 2014-04-21 12:39:55 UTC
I can confirm the issue with Okular 0.18.4 and poppler 0.24.3, but I guess it is a poppler bug.
Comment 4 Yasin Zähringer 2014-04-23 12:54:06 UTC
I can still confirm the issue on an Ubuntu 14.04 system, i.e. okular version 0.19 and poppler version 0.24.5.
I also tested Christoph's hypothesis with evince, a viewer which also uses the poppler library, and I cannot reproduce the issue. Though, evince has some rendering problems, e.g. the two lines of the equal sign look differently, which lead me to believe that evince's poppler configuration was fine tuned to exactly avoid this problem. Still, even with this fine tuning, it does not render the document in a completely faithful manner.
I do not know enough about the internals of Okular and poppler to locate the problem. Is it a poppler configuration issue or a genuine poppler bug?
Comment 5 Albert Astals Cid 2014-04-23 20:03:49 UTC
evince uses poppler but a different engine for rendering. Any rendering issue in a pdf file will almost never be an Okular issue but a poppler one.
Comment 6 Yasin Zähringer 2014-04-24 21:11:57 UTC
I opened a poppler bug: https://bugs.freedesktop.org/show_bug.cgi?id=77904
Comment 7 Luigi Toscano 2014-05-08 16:04:17 UTC
Closing upstream for now, waiting for resolution on poppler size.
Comment 8 Christoph Feck 2014-06-02 20:31:40 UTC
The PDF attached to the Poppler bug is probably not the same as comment #1 (there, it displays blank for me).