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 686324 - some pdf documents render correctly, but turn to garbage in print preview or when printed
some pdf documents render correctly, but turn to garbage in print preview or ...
Status: RESOLVED NOTGNOME
Product: evince
Classification: Core
Component: printing
3.6.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-10-17 18:48 UTC by Alexandre Rostovtsev
Modified: 2012-10-18 16:17 UTC
See Also:
GNOME target: ---
GNOME version: 3.5/3.6


Attachments
pdf example (18.51 KB, application/pdf)
2012-10-17 18:48 UTC, Alexandre Rostovtsev
Details
attachment from comment #0 printed to pdf from evince-3.6.1 (16.91 KB, application/pdf)
2012-10-17 21:44 UTC, Alexandre Rostovtsev
Details

Description Alexandre Rostovtsev 2012-10-17 18:48:17 UTC
Created attachment 226675 [details]
pdf example

(As reported downstream at https://bugs.gentoo.org/show_bug.cgi?id=438688 and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=688028)

There are several examples of pdf documents that render correctly in the main evince viewer, but turn to garbage in evince's print preview window, or when actually printed on paper from evince. I am attaching one of them.

According to the Gentoo bugzilla report,

> When I print the attached pdf (or any other one using the nexus font) the
> characters of each entire line get placed on top of each other. This is even
> visible in the print preview.
> 
> Printing the same pdf from the hplip Device Manager directly it works as
> expected. 

I can reproduce this issue with evince-3.6.1 and 3.4.0.
Comment 1 Germán Poo-Caamaño 2012-10-17 20:13:56 UTC
I can not reproduce the bug, neither with evince 3.4.0/poppler 0.18.4 nor with evince 3.6.0/poppler 0.21.

I tested the PDF files in both bug reports, and the print preview looks exactly the same as the main view.

What poppler version are?
Comment 2 Germán Poo-Caamaño 2012-10-17 20:14:48 UTC
Strictly spea(In reply to comment #1)
> I can not reproduce the bug, neither with evince 3.4.0/poppler 0.18.4 nor with
> evince 3.6.0/poppler 0.21.

Strictly speaking, evince from master (which is not that far from 3.6.0).
Comment 3 Alexandre Rostovtsev 2012-10-17 20:39:44 UTC
(In reply to comment #1)

I am seeing the problem with evince-3.6.1 + poppler-0.20.5, and with evince-3.4.0 + poppler-0.18.4 or 0.20.5.
Comment 4 José Aliste 2012-10-17 21:04:35 UTC
(In reply to comment #0)
> Created an attachment (id=226675) [details]
> pdf example
> 
> (As reported downstream at https://bugs.gentoo.org/show_bug.cgi?id=438688 and
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=688028)
> 
> There are several examples of pdf documents that render correctly in the main
> evince viewer, but turn to garbage in evince's print preview window, or when
> actually printed on paper from evince. I am attaching one of them.
> 
> According to the Gentoo bugzilla report,
> 
> > When I print the attached pdf (or any other one using the nexus font) the
> > characters of each entire line get placed on top of each other. This is even
> > visible in the print preview.
> > 
> > Printing the same pdf from the hplip Device Manager directly it works as
> > expected. 
> 
> I can reproduce this issue with evince-3.6.1 and 3.4.0.

If you print to pdf with evince, does the resulting pdf has the garbage you see in printing? Could you attach the input and output pdf? I am thinking this may be related to some cairo problem, so it would be also good if you can say which version of cairo are you using.
Comment 5 Alexandre Rostovtsev 2012-10-17 21:44:26 UTC
Created attachment 226699 [details]
attachment from comment #0 printed to pdf from evince-3.6.1

(In reply to comment #4)
> If you print to pdf with evince, does the resulting pdf has the garbage you see
> in printing? Could you attach the input and output pdf?

Yes, the result of print to pdf contains the same garbage; see attached file.

> I am thinking this may
> be related to some cairo problem, so it would be also good if you can say which
> version of cairo are you using.

cairo-1.12.2. I have tested both Gentoo's cairo-1.12.2-r4 package, and an unpatched vanilla cairo-1.12.2; pdf printing in evince fails the same way on both.
Comment 6 Alexandre Rostovtsev 2012-10-17 22:00:51 UTC
Same with cairo-1.12.4
Comment 7 José Aliste 2012-10-18 14:32:41 UTC
Since you are on gentoo, can you check with cairo-1.10?
Comment 8 José Aliste 2012-10-18 14:41:30 UTC
Since you are on gentoo, can you check with cairo-1.10?
Comment 9 José Aliste 2012-10-18 15:59:22 UTC
Indeed, I tested with different versions of cairo, and this is a cairo bug that is fixed in git master, but not yet in a release.
Comment 10 Alexandre Rostovtsev 2012-10-18 16:17:13 UTC
(In reply to comment #9)
> Indeed, I tested with different versions of cairo, and this is a cairo bug that
> is fixed in git master, but not yet in a release.

Thanks, you are right!

Specifically, these two patches in cairo git fix the problem:
http://cgit.freedesktop.org/cairo/commit/?id=cffbdf50ce0117d62d6e157369c60e4a8572fd21
http://cgit.freedesktop.org/cairo/commit/?id=599e78ea2ee146c74fc7ffcee32a055dabbefdda