After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 677880 - evince does not show pstricks graphic (pscustom)
evince does not show pstricks graphic (pscustom)
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: PDF
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-06-11 17:55 UTC by Kin Mye
Modified: 2012-11-04 22:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
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). (36.02 KB, application/x-pdf)
2012-06-11 17:55 UTC, Kin Mye
Details
PDF Test case with pstrick (5.09 KB, application/x-pdf)
2012-10-07 10:52 UTC, Germán Poo-Caamaño
Details
Screenshot with the correct render (Evince master) (31.36 KB, image/png)
2012-11-04 22:21 UTC, Germán Poo-Caamaño
Details

Description Kin Mye 2012-06-11 17:55:37 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!
Comment 1 Germán Poo-Caamaño 2012-10-07 10:52:36 UTC
Created attachment 225977 [details]
PDF Test case with pstrick

The PDF created with latex + dvips + ps2pdf14 that shows the bug.
Comment 2 Germán Poo-Caamaño 2012-10-07 10:53:55 UTC
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
Comment 3 Germán Poo-Caamaño 2012-11-04 22:21:56 UTC
Created attachment 228057 [details]
Screenshot with the correct render (Evince master)
Comment 4 Germán Poo-Caamaño 2012-11-04 22:22:06 UTC
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)