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 529868 - PDF documents with certain LaTeX figures fails to render properly (but does with gv)
PDF documents with certain LaTeX figures fails to render properly (but does w...
Status: RESOLVED NOTGNOME
Product: evince
Classification: Core
Component: PDF
2.20.x
Other All
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-04-25 11:08 UTC by edgimar
Modified: 2009-12-02 21:43 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
This PDF file exhibits the problem described in this bug. (11.34 KB, application/x-pdf)
2008-04-25 11:09 UTC, edgimar
Details
PDF conversion (2.93 KB, application/pdf)
2009-12-02 09:51 UTC, D Haley
Details

Description edgimar 2008-04-25 11:08:26 UTC
Please describe the problem:
See the 'how to reproduce' steps for more details.  Basically, there is a difference between how Evince renders PDF files and how Ghostview renders them.  Ghostview does it correctly, evince not.


Steps to reproduce:
1. Create an SVG document using inkscape.  In the document, render a LaTeX formula using the included render tool.
2. Save the document as an EPS file, converting text to paths.
3. Use this EPS in a LaTeX document, generating a DVI file.
4. Convert the DVI file to a PS file using the dvi2ps tool.
5. Convert the PS file to a PDF file using the ps2pdf tool.

6. Open this PDF file in Evince.  The EPS figure's text will look normal, but anything which was created from the "LaTeX render" (pstoedit based) inkscape tool appears (and prints to a printer) as very bold (almost unreadable sometimes).

7. Open the same PDF file with ghostview.  Now the LaTeX part of the EPS figure looks normal (both on the screen, and when printed to a printer).


Actual results:


Expected results:


Does this happen every time?
yes.

Other information:
I will attach a sample PDF file which exhibits the described behavior.
Comment 1 edgimar 2008-04-25 11:09:59 UTC
Created attachment 109897 [details]
This PDF file exhibits the problem described in this bug.
Comment 2 Robert McNees 2009-02-22 17:45:27 UTC
  I've encountered this same problem. I think it has more to do with how the rendered LaTeX is converted to SVG, as opposed to a problem with evince. Here is how I dealt with it, from within inkscape:

1) Select the rendered LaTeX
2) Under "Fill and Stroke", go to the "fill" tab and make sure that the selection is filled. 
3) Now go to the "Stroke" tab and make sure the selection is not stroked.

The rendered LaTeX will now display and print correctly. 

 


Comment 3 Emmanuel Fleury 2009-11-15 09:29:40 UTC
I couldn't reproduce the bug with Evince 2.28.1. Could you confirm this ?
Comment 4 D Haley 2009-12-02 09:51:05 UTC
Created attachment 148884 [details]
PDF conversion

I believe I am seeing this same bug. I have generated the attached PDF using inkscape, by creating a path and then assigning the stroke a gradient value 

The PDF is then converted using inkscape at the command line:

$ inkscape bug-stroke.svg -A bug-stroke.pdf

Viewing in acrobat reader is fine, viewing in evince creates a gradient filled rectangle, with the dimensions the size of the bounding box for the stroke.

-- SVG FILE --

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:xlink="http://www.w3.org/1999/xlink"
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
   width="744.09448819"
   height="1052.3622047"
   id="svg3856"
   version="1.1"
   inkscape:version="0.47pre4 r22446"
   sodipodi:docname="New document 1">
  <defs
     id="defs3858">
    <linearGradient
       inkscape:collect="always"
       id="linearGradient4648">
      <stop
         style="stop-color:#000000;stop-opacity:1;"
         offset="0"
         id="stop4650" />
      <stop
         style="stop-color:#000000;stop-opacity:0;"
         offset="1"
         id="stop4652" />
    </linearGradient>
    <inkscape:perspective
       sodipodi:type="inkscape:persp3d"
       inkscape:vp_x="0 : 526.18109 : 1"
       inkscape:vp_y="0 : 1000 : 0"
       inkscape:vp_z="744.09448 : 526.18109 : 1"
       inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
       id="perspective3864" />
    <linearGradient
       inkscape:collect="always"
       xlink:href="#linearGradient4648"
       id="linearGradient4654"
       x1="227.79448"
       y1="402.83409"
       x2="386.37827"
       y2="402.83409"
       gradientUnits="userSpaceOnUse" />
  </defs>
  <sodipodi:namedview
     id="base"
     pagecolor="#ffffff"
     bordercolor="#666666"
     borderopacity="1.0"
     inkscape:pageopacity="0.0"
     inkscape:pageshadow="2"
     inkscape:zoom="0.49497475"
     inkscape:cx="-27.616084"
     inkscape:cy="579.41548"
     inkscape:document-units="px"
     inkscape:current-layer="layer1"
     showgrid="false"
     inkscape:window-width="1280"
     inkscape:window-height="967"
     inkscape:window-x="0"
     inkscape:window-y="0"
     inkscape:window-maximized="1" />
  <metadata
     id="metadata3861">
    <rdf:RDF>
      <cc:Work
         rdf:about="">
        <dc:format>image/svg+xml</dc:format>
        <dc:type
           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
        <dc:title></dc:title>
      </cc:Work>
    </rdf:RDF>
  </metadata>
  <g
     inkscape:label="Layer 1"
     inkscape:groupmode="layer"
     id="layer1">
    <path
       style="fill:none;stroke:url(#linearGradient4654);stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;fill-opacity:1"
       d="M 228.29448,494.75798 385.87827,310.91021"
       id="path3866" />
  </g>
</svg>
Comment 5 Carlos Garcia Campos 2009-12-02 10:04:27 UTC
This is a poppler bug, could you please forward it to the freedesktop bugzilla?
Comment 6 Emmanuel Fleury 2009-12-02 21:43:25 UTC
Done: https://bugs.freedesktop.org/show_bug.cgi?id=25405