Evince does not print a particular PDF properly

Bug #78369 reported by Ryan T. Sammartino
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Evince
Fix Released
Medium
poppler (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs
Nominated for Karmic by tonton2007

Bug Description

Binary package hint: evince

evince cannot print the following PDF:

http://www.networkwestmidlands.com/DirectDebit/Direct%20Debit%20form%2007.pdf

It does print properly using GNOME PDF Viewer and Adobe Acrobat.

No output on the console, but this appears in /var/log/syslog:

Jan 7 22:39:18 localhost hpiod: unable to write data hp:/usb/DeskJet_895C?serial=MX92C1W0N7FB: Resource temporarily unavailable io/hpiod/channel.cpp 63
Jan 7 22:39:18 localhost DeskJet_895C?serial=MX92C1W0N7FB: INFO: check device; will retry in 30 seconds...

The printer then halts, and I have to power cycle it to get the paper out. The output consists of a few centimetres of barely recognizable garbage.

On my HP Photosmart 8150 the results are similar, but the printer never actually prints anything... it just seems to hang.

I'm on up-to-date edgy:

$ dpkg-query -l evince
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii evince 0.6.1-0ubuntu1 Document (postscript, pdf) viewer

Revision history for this message
Dave Morley (davmor2) wrote :

Do you have issues printing with any other programs or just this. I have successfully printed it on a hp-PCS1215. If it happens on other programs I would be tempted to say it was a problem with the printer driver. If not then the issue may of been fixed as I am using Feisty. Evince 0.7.0

Changed in evince:
assignee: nobody → davmor2-gmail
status: Unconfirmed → Needs Info
Revision history for this message
Albrecht Mühlenschulte (a7p) wrote : Prints perfectly

I am using edgy (evince 0.6.1-0ubuntu1, so the same as you) and I also cannot reproduce the bugreport.

I am running an x86 platform - do you too?

Revision history for this message
Ryan T. Sammartino (ryan-sammartino) wrote :

> Do you have issues printing with any other programs or just this.

Just this (that I know of). Like I said, it prints fine with Gnome PDF Viewer and Adobe Acrobat.

> I am running an x86 platform - do you too?

Yes.

Revision history for this message
In , Sebastien Bacher (seb128) wrote :

That bug has been opened on
https://launchpad.net/ubuntu/+source/evince/+bug/78369

"Binary package hint: evince

evince cannot print the following PDF:

http://www.networkwestmidlands.com/DirectDebit/Direct%20Debit%20form%2007.pdf

It does print properly using GNOME PDF Viewer and Adobe Acrobat.

No output on the console, but this appears in /var/log/syslog:

Jan 7 22:39:18 localhost hpiod: unable to write data
hp:/usb/DeskJet_895C?serial=MX92C1W0N7FB: Resource temporarily unavailable
io/hpiod/channel.cpp 63
Jan 7 22:39:18 localhost DeskJet_895C?serial=MX92C1W0N7FB: INFO: check device;
will retry in 30 seconds...

The printer then halts, and I have to power cycle it to get the paper out. The
output consists of a few centimetres of barely recognizable garbage.

On my HP Photosmart 8150 the results are similar, but the printer never
actually prints anything... it just seems to hang.

Revision history for this message
Sebastien Bacher (seb128) wrote :
Changed in evince:
assignee: davmor2-gmail → desktop-bugs
importance: Undecided → Low
status: Needs Info → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

That's a poppler bug according to upstream, I've forwarded it to https://bugs.freedesktop.org/show_bug.cgi?id=9853

Changed in evince:
status: Unknown → Confirmed
Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

For informations :
evince 0.7.2 under feisty 20070215 have no problem to print this pdf

Revision history for this message
Daniel Holbach (dholbach) wrote :

I have no problem to print this document either. Looks like a printing problem rather than a poppler one.

Revision history for this message
Henrik Nilsen Omma (henrik) wrote :

Is that a postscript printer? Printing to file creates an empty output.ps file, while other PDFs do the right thing.

Revision history for this message
Ryan T. Sammartino (ryan-sammartino) wrote :

I have another PDF that does not print correctly with evince, but does print properly with other PDF applications.

Unfortunately, this is my tax return, so I can't share it. :)

Revision history for this message
Id2ndR (id2ndr) wrote :

I can't print with evince my CV created with OpenOffice.org.
This works fine with acroread. I also can print other document with Mozilla Firefox, on Gnome test page.

I'm running Ubuntu Feisty.

Gnome Printer state is job:stopped

Cups status on web interface is : /usr/lib/cups/filter/foomatic-rip failed

In /var/log/cups/error_log, I can see
E [26/Apr/2007:11:25:33 +0200] [Job 6] /undefined in <CE><U+0778>
E [26/Apr/2007:11:25:33 +0200] PID 8506 (/usr/lib/cups/filter/foomatic-rip) stop
ped with status 3!

I got an HP Deskjet 995C connected through bluetooth.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Id2ndR, in your case GhostScript was not able to convert the PostScript coming from evince's print function to the printer's native language. Either evince has produced broken PostScript or there is a bug in ESP GhostScript.

Can you try GPL GhostScript? Do

sudo apt-get install gs-gpl
sudo update-alternatives --config gs

and choose gs-gpl in the menu. Then try to print again, the same file on the same printer. Does it work?

If you are not able to print on another printer (connected to the same machine) now, revert to ESP GhostScript with

sudo update-alternatives --config gs

and choosing gs-esp.

Revision history for this message
Id2ndR (id2ndr) wrote : Re: [Bug 78369] Re: Evince does not print a particular PDF properly

Till Kamppeter a écrit :
> Id2ndR, in your case GhostScript was not able to convert the PostScript
> coming from evince's print function to the printer's native language.
> Either evince has produced broken PostScript or there is a bug in ESP
> GhostScript.
>

Ok, thanks for this piece of information.

> Can you try GPL GhostScript? Do
>
> sudo apt-get install gs-gpl
> sudo update-alternatives --config gs
>
> and choose gs-gpl in the menu. Then try to print again, the same file on
> the same printer. Does it work?
>

I just did it. It doesn't work better.
I still have status 3 on the error log.

> If you are not able to print on another printer (connected to the same
> machine) now, revert to ESP GhostScript with
>

I only have one printer, so I can't try an other one.

> sudo update-alternatives --config gs
>
> and choosing gs-esp.
>
>

I'll revert waiting for more information.

Revision history for this message
Ryan T. Sammartino (ryan-sammartino) wrote :

This bug no longer occurs for me in Gutsy.

Revision history for this message
In , Jonathan Ernst (jonathan.ernst) wrote :

This PDF now prints but I still have a lot of customers who sometimes complain about impossibility to print from evince. Everytime this happens, the workaround is to print to PDF from evince (sic!) and then print the PDF generated from the PDF.

Most of the times the PDF has some issues (reported by pdf2ps), but not everytime.

I have here two PDF files (that I unfortunately cannot attach or upload publicly) that show this problem.

If a developer is wanting to look at them, I might send them to him or follow his instructions in order to determine the problem.

Revision history for this message
Id2ndR (id2ndr) wrote :

This bug no longer occurs for me too (in Gutsy).

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Don't know whether it was really in Poppler (I think the replacement of ESP Ghostscript by the merged GPL Ghostscript fixed the problem), but now both reporters tell that it is fixed in Gutsy, closing ...

Changed in poppler:
status: Confirmed → Fix Released
Revision history for this message
Jonathan Ernst (jonathan.ernst) wrote :

I have still a lot of customers who sometimes complain about impossibility to print from evince. Everytime this happens, the workaround is to print to PDF from evince (sic!) and then print the PDF generated from the PDF.

Most of the times the PDF has some issues (reported by pdf2ps), but not everytime.

I have here two PDF files (that I unfortunately cannot attach or upload publicly) that show this problem under Gutsy.

If a developer is wanting to look at them, I might send them to him or follow his instructions in order to determine the problem.

Changed in poppler:
status: Fix Released → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

do you still get the issue in hardy or intrepid?

Changed in poppler:
milestone: later → none
status: Confirmed → Triaged
Revision history for this message
Jonathan Ernst (jonathan.ernst) wrote :

One of the document I was not able to print in Hardy now prints in Intrepid. As for the linked document in the bug description it doesn't seem to be (anymore) a valid PDF document (acroread, xpdf and evince all fail to read it here).

Revision history for this message
Taylor Braun-Jones (nocnokneo) wrote :

Page 5 of the following document does not print correctly for me from evince:

http://www.socialsecurity.gov/online/ss-5.pdf

The triangle arrows are not printed in the correct location. Printing from Acrobat Reader on Windows XP works correctly. Should I file this under a new bug or does it count as "Evince does not print a particular PDF properly"?

Revision history for this message
Taylor Braun-Jones (nocnokneo) wrote :

Sorry, I forgot to post my version information:

Ubuntu 8.10
Evince 2.24.1
Printing to a Brother DCP-7020

Revision history for this message
Greg Grossmeier (greg.grossmeier) wrote :

trjonescp: It would be best to open a new bug. Thanks.

Revision history for this message
Fabián Rodríguez (magicfab) wrote :

The original forms location has changed to:
http://www.networkwestmidlands.com/directdebit/appForms.aspx

Next time someone opens a bug like this, please attach any related files.

Two people confirmed the bug wasn't present in Gutsy.

So, closing this as invalid.

Revision history for this message
In , Albert Astals Cid (aacid) wrote :

Closing this one as the user says they work now.

Jonathan all you can do is create bugs with public files, if you can't share them, we can't fix them.

Changed in evince:
status: Confirmed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

could you try if that's still an issue and add an example if that's one?

Changed in poppler (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Sebastien Bacher (seb128) wrote :

the issue should be fixed in karmic now closing the bug, you can reopen if you still get it though

Changed in poppler (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
In , Fabri Velas (fabrivelas) wrote :

Created an attachment (id=31445)
corrupt pdf file that prints on xpdf and acroread but not evince

Ubuntu 9.10 Linux 2.6.31-15-generic #50-Ubuntu SMP Tue Nov 10 14:54:29 UTC 2009 i686 GNU/Linux
evince: 2.28.1-ubuntu1.2 (karmic-updates)

I still have this bug with the attached file using evince. It prints fine with acroread or xpdf.
The workaround printing to a pdf using evince and then printing that pdf file from evince mentioned in comment #16 works for me.
With evince I get a printout saying;
ERROR: undefined
OFFENDING COMMAND: 0a "0a" COMMAND TYPE: nametype
and more...

Revision history for this message
Fabri Velas (fabrivelas) wrote :

Ubuntu 9.10 Linux 2.6.31-15-generic #50-Ubuntu SMP Tue Nov 10 14:54:29 UTC 2009 i686 GNU/Linux
evince: 2.28.1-ubuntu1.2 (karmic-updates)

I still have this bug with the attached file using evince. It prints fine with acroread or xpdf.
The workaround printing to a pdf using evince and then printing that pdf file from evince mentioned in comment #16 works for me.
With evince I get a printout saying;
ERROR: undefined
OFFENDING COMMAND: 0a "0a" COMMAND TYPE: nametype
and more...

Changed in poppler (Ubuntu):
status: Fix Released → New
status: New → Fix Released
Changed in evince:
importance: Unknown → Medium
Changed in evince:
importance: Medium → Unknown
Revision history for this message
Fabri Velas (fabrivelas) wrote :

I just checked the file from message 29 and it prints fine now on Ubuntu 10.10 Linux 2.6.35-25-generic #44-Ubuntu SMP Fri Jan 21 17:40:48 UTC 2011 i686 GNU/Linux
and
evince 2.23.0-0ubuntu1.1
Thanks.

Changed in evince:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.