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 680753 - evince print function is corrupted
evince print function is corrupted
Status: RESOLVED NOTGNOME
Product: evince
Classification: Core
Component: printing
3.5.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-07-28 14:16 UTC by melchiaros
Modified: 2012-08-01 05:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (132.68 KB, image/png)
2012-07-28 14:16 UTC, melchiaros
Details
affected pdf document (187.17 KB, application/pdf)
2012-07-28 14:17 UTC, melchiaros
Details
the to pdf print (109.98 KB, image/png)
2012-07-29 11:15 UTC, melchiaros
Details
fonts list part1 (123.45 KB, image/png)
2012-07-29 17:50 UTC, melchiaros
Details
font list part2 (124.24 KB, image/png)
2012-07-29 17:51 UTC, melchiaros
Details
fonst list part3 (123.05 KB, image/png)
2012-07-29 17:51 UTC, melchiaros
Details
print in file as pdf (177.80 KB, application/pdf)
2012-07-29 17:52 UTC, melchiaros
Details

Description melchiaros 2012-07-28 14:16:19 UTC
I have originally reported on:

https://bugs.launchpad.net/ubuntu/+source/evince/+bug/1030310

I copy the ticket content also here. On the launchpad ticket are several additional system properties attached. I only attach the affected document and a screenshot here.

A stacktrace is not available.

Launchpad entry:------------------------------------------

I have used evince for printing a pdf file.

Printing is working, but unfortunally only corrupted, missordered output comes to the paper.

To check that it is not cups by itself I have used the print preview function of evince.

What evince print preview shows is the same corrupted output that I have also after printing on paper.

So, it is a problem with evince by itself.

Addtional:

I attach a screenshot of the print preview of evince, whith the opended document in evince in background.
I also attach the document which is affected by or causes the error.

Steps to reproduce:

1.Open the attached document with evince
2.Use File -> print -> print preview and see the error rendered document in print preview view.
3.Close print preview.
4.Use the print button in the still open print dialog.
5.See that the paper print result is the same as in print preview.

The reproduction procedure hits the error to 100%.

The pdf rendering on the computer screen by evince is working proper with this document and shows by itself no corruption.

It is only the printing rendering.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: evince 3.5.4-0ubuntu1
ProcVersionSignature: Ubuntu 3.5.0-6.6-generic 3.5.0
Uname: Linux 3.5.0-6-generic x86_64
ApportVersion: 2.4-0ubuntu6
Architecture: amd64
Date: Sat Jul 28 15:29:54 2012
ExecutablePath: /usr/bin/evince-previewer
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120722)
ProcEnviron:
 PATH=(custom, no username)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: evince
UpgradeStatus: No upgrade log present (probably fresh install)
Comment 1 melchiaros 2012-07-28 14:16:59 UTC
Created attachment 219781 [details]
screenshot
Comment 2 melchiaros 2012-07-28 14:17:47 UTC
Created attachment 219782 [details]
affected pdf document
Comment 3 José Aliste 2012-07-28 22:00:32 UTC
I cant reproduce either on a fedora nor an ubuntu system. Which version of poppler do you have isntalled? What about the information on the fonts of the file? Which printer do you have??? If you print directly to pdf, does the same error occur?
Comment 4 André Klapper 2012-07-29 10:02:18 UTC
...and which gtk+ version is this about?
Comment 5 melchiaros 2012-07-29 11:14:12 UTC
Q:Which version of
poppler do you have isntalled?

poppler-data 0.4.5-8
libpoppler-glib8 0.20.2-2ubuntu2
libpoppler26 0.20.2-2ubuntu2

Q:What about the information on the fonts of the
file?

A: ? -> How can I find this out?

Q:Which printer do you have???

A:Not important, because Edward Donovan (edward.donovan) can get the same on preview. We are both able to handle the file with success with okular(also printing) which gave a correct output. Beside this: It is an HP Office Jet Pro 8000.

Comment:I cant reproduce either on a fedora nor an ubuntu system.

Reply: It is on Quantal alpha3 daily upgraded system(amd64):

http://cdimage.ubuntu.com/daily-live/current/

Q:If you print directly to pdf, does the same
error occur?

A:I have tried. Yes, the same error occure. I attach a screenshot.
Comment 6 melchiaros 2012-07-29 11:15:16 UTC
Created attachment 219828 [details]
the to pdf print
Comment 7 melchiaros 2012-07-29 11:16:52 UTC
Q:...and which gtk+ version is this about?

A:

libgtk-3-0 3.5.8-0ubuntu2
libgtk-3-bin 3.5.8-0ubuntu2
libgtk-3-common 3.5.8-0ubuntu2
Comment 8 melchiaros 2012-07-29 11:27:13 UTC
[Offtopic] 

I am willing to work on every bugreport I send. This is good style and often needed. Improving the value of a report I see also primary on the side on the reporter. 

But, I am a bit unhappy, when the question I get could be also answered by a quick following the link I gave(to launchpad). This is only given for one kind of questions I got here. That for the program version. Apport attaches automatically a complete list of dependences(of actual installed/used program version), which could be find in comment #1. It is called Dependences.txt.

Normally I try to give the needed information before a question occures, but for example I have not known/thought of that poppler is important for evince.

So, it would be nice when there would be (a little bit) more willingness to cross the border of bugtrackers. 

Just for intention.

greetings 

melchiaros

[Offtopic]
Comment 9 José Aliste 2012-07-29 16:40:58 UTC
I guess the problem is that the file you provided uses the Times-Roman font, but does not embed this... So it seems the issue is font-config related. What is the 
result of fc-match Times-Roman on your machine?
Comment 10 melchiaros 2012-07-29 16:56:32 UTC
On terminal:

:~$ fc-match Times-Roman
n021003l.pfb: "Nimbus Roman No9 L" "Regular"
Comment 11 José Aliste 2012-07-29 17:39:27 UTC
I am lost, it is the same as here... Since you are using a very recent version of evince, could you check the font properties in the pdf file with evince (File->Properties and then font properties tab) and see which font is evince using?
Comment 12 José Aliste 2012-07-29 17:41:16 UTC
Also, please attach the output.pdf file to the bug.
Comment 13 melchiaros 2012-07-29 17:49:06 UTC
I see there a long list of fonts.

There is a Times-Roman entry. Unfortunally I could not copy&paste from there,so I attach 3 screenshots which will show the complete list. And I attach the output.pdf.
Comment 14 melchiaros 2012-07-29 17:50:52 UTC
Created attachment 219850 [details]
fonts list part1
Comment 15 melchiaros 2012-07-29 17:51:24 UTC
Created attachment 219851 [details]
font list part2
Comment 16 melchiaros 2012-07-29 17:51:55 UTC
Created attachment 219852 [details]
fonst list part3
Comment 17 melchiaros 2012-07-29 17:52:47 UTC
Created attachment 219853 [details]
print in file as pdf
Comment 18 melchiaros 2012-07-29 17:53:03 UTC
Done.
Comment 19 José Aliste 2012-07-30 22:52:06 UTC
Thanks for all the information! I am currently clueless, because the output.pdf is obiously wrong, but I fail to see which part of the stack is producing the error, especially since I cannot reproduce my self. One thing, I haven't tried with latest cairo... I will try to see if maybe with this I can trigger the bug...
Comment 20 José Aliste 2012-07-30 22:54:54 UTC
I finally can reproduce, it seems to be related to cairo, as I could not trigger this with cairo 1.10 and I can trigger it with cairo 1.12.
Comment 21 José Aliste 2012-07-31 16:12:13 UTC
Ok, I retried, same version of evince (latest git) same version of poppler (latest git). With cairo 1.10.2, the printing is Ok, with cairo 1.12.2, printing is not Ok. This at least gives something where to look at.
Comment 22 Adrian Johnson 2012-07-31 22:52:41 UTC
Has been fixed in cairo:

https://bugs.freedesktop.org/show_bug.cgi?id=52972
Comment 23 José Aliste 2012-08-01 05:18:42 UTC
Thanks Adrian, I was hoping from a comment from you ;)