GNOME Bugzilla – Bug 686324
some pdf documents render correctly, but turn to garbage in print preview or when printed
Last modified: 2012-10-18 16:17:13 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.
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?
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).
(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.
(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.
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.
Same with cairo-1.12.4
Since you are on gentoo, can you check with cairo-1.10?
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.
(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