GNOME Bugzilla – Bug 677880
evince does not show pstricks graphic (pscustom)
Last modified: 2012-11-04 22:22:06 UTC
Created attachment 216138 [details] the file include a simple figure that does not show correctly in evince. Also screenshots of the same figure in acroread (ok) and evince (wrong). This is a bug I found 2 or 3 years ago but I though that was pstricks related. However, it seems is a bug of evince. I created a latex figure using pstricks to shadow the area under x^2. I used latex + dvips + ps2pdf14 to create the pdf file. Evince does not show the figure properly. evince myfile.pdf => WRONG However, printing the file, from evince: CORRECT evince myfile.ps => CORRECT acroread myfile.pdf => CORRECT I attach the .pdf file that includes: a) the problematic figure: this changes depending the viewer you use. b) screenshots of the same figure with both acroread (left) and evince (right) And this is the .tex file. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \documentclass{article} \usepackage{pstricks-add} \begin{document} \begin{pspicture}(-1,-1)(3,6) \pscustom[algebraic,linestyle=none,fillstyle=hlines, hatchsep=4pt,hatchcolor=blue]{% \psplot{0}{1.5}{x^2} \psline(1.5,0)(0,0) } \psaxes{->}(3,4) \psplot[algebraic]{0}{2}{x^2} \end{pspicture} \end{document} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I can confirm it in: DISTRIB_RELEASE=11.10 DISTRIB_CODENAME=oneiric DISTRIB_DESCRIPTION="Ubuntu 11.10" and also in PRETTY_NAME="Debian GNU/Linux wheezy/sid" NAME="Debian GNU/Linux" Thank you!
Created attachment 225977 [details] PDF Test case with pstrick The PDF created with latex + dvips + ps2pdf14 that shows the bug.
I can reproduce the bug with poppler-glib-demo. Therefore, the bug is in poppler, not in Evince. We should report the bug in freedesktop. https://bugs.freedesktop.org/describecomponents.cgi?product=poppler
Created attachment 228057 [details] Screenshot with the correct render (Evince master)
The problem was either in poppler or cairo. But it is already fixed. It renders correctly with evince 3.6.0, poppler master (>=0.21) and cairo master (>=1.12.6)