PDF printing output of evince broken with PDF file from "Der Spiegel"

Bug #1063618 reported by Till Kamppeter
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libcairo
Fix Released
High
cairo (Ubuntu)
Fix Released
High
Unassigned
Quantal
Fix Released
High
Unassigned

Bug Description

[Impact]
Certain PDF files, especially from the German magazine "Der Spiegel", cannot get printed from evince, the standard PDF viewer in Ubuntu.

[Test Case]
1. Download the attache sample file and open it with evince
2. Choose "File"/"Print"
3. In the print dialog choose "Print to File", choose PDF as output format and create the file by clicking "Print".
4. Open the resulting file with any PDF viewer (can also be evince)
5. Text is all pushed together to the left border of the column.

After installing the proposed package and repeating the steps above the resulting PDF file displays correctly.

[Regression Potential]
Minimal, the patch is relatively small and in the upstream repository.

[Original report]
I have opened the attached PDF file from the German magazine "Der Spiegel" with evince. When printing it, the main text is messed up. To investigate further I have selected "Print to a file" in evince's print dialog, selected PDF as output format and attached the result. This file shows the same messed fonts when displaying it with gs, evince, okular, Adobe Reader, and also when printing it unfiltered on a native PDF printer (HP LaserJet P3005, HP Color LaserJet CM3530 MFP). evince's own print preview does not reveal the problem.

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

Attached the PNG image output of Ghostscript rendering the PDF produced by evince:

gs -sDEVICE=png16m -sOutputFile=out.png der-spiegel-krieg-der-geschwister-evince.pdf

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

Till, is there any chance you could report that issue upstream as well?

Changed in cairo (Ubuntu):
milestone: ubuntu-12.10 → quantal-updates
Revision history for this message
In , Till Kamppeter (till-kamppeter) wrote :

Created attachment 68634
der-spiegel-krieg-der-geschwister.pdf

Original bug report to Ubuntu:

https://bugs.launchpad.net/ubuntu/+source/cairo/+bug/1063618

I have opened the attached PDF file from the German magazine "Der Spiegel" with evince. When printing it, the main text is messed up. To investigate further I have selected "Print to a file" in evince's print dialog, selected PDF as output format and attached the result. This file shows the same messed fonts when displaying it with gs, evince, okular, Adobe Reader, and also when printing it unfiltered on a native PDF printer (HP LaserJet P3005, HP Color LaserJet CM3530 MFP). evince's own print preview does not reveal the problem.

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

Created attachment 68635
der-spiegel-krieg-der-geschwister-evince.pdf

PDF output from evince.

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

Created attachment 68636
out.png

Attached the PNG image output of Ghostscript rendering the PDF produced by evince:

gs -sDEVICE=png16m -sOutputFile=out.png der-spiegel-krieg-der-geschwister-evince.pdf

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :
Changed in libcairo:
importance: Unknown → High
status: Unknown → Confirmed
Revision history for this message
In , Adrian Johnson (ajohnson-redneon) wrote :
Revision history for this message
In , Till Kamppeter (till-kamppeter) wrote :

Thank you very much. I will apply the patches to the Poppler which comes with Ubuntu Quantal.

Changed in cairo (Ubuntu Quantal):
status: New → Triaged
assignee: nobody → Till Kamppeter (till-kamppeter)
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

The bug got fixed upstream, I will apply the patches to our Poppler package soon.

Changed in cairo (Ubuntu Quantal):
status: Triaged → In Progress
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Fixed package uploaded to quantal-proposed, debdiff attached.

description: updated
Changed in libcairo:
status: Confirmed → Fix Released
Revision history for this message
Clint Byrum (clint-fewbar) wrote : Please test proposed package

Hello Till, or anyone else affected,

Accepted cairo into quantal-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/cairo/1.12.2-1ubuntu2.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in cairo (Ubuntu Quantal):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Works perfectly now. thank you. Marking as verified.

tags: added: verification-done
removed: verification-needed
Changed in cairo (Ubuntu Quantal):
assignee: Till Kamppeter (till-kamppeter) → nobody
Changed in cairo (Ubuntu):
assignee: Till Kamppeter (till-kamppeter) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cairo - 1.12.2-2ubuntu1

---------------
cairo (1.12.2-2ubuntu1) raring; urgency=low

  * Merge from Debian. Remaining changes:
    - patches/font-handling-fixes.patch (LP: #1063618)
    - patches/lp-#1030357.patch (LP: #1030357)
    - patches/server_side_gradients.patch

cairo (1.12.2-2) unstable; urgency=low

  * debian/libcairo2-udeb.install:
    + Add the GObject library to the udeb. Needed by GTK+3 nowadays.
      Thanks to Michael Biebl for the patch.
 -- Stephane Graber <email address hidden> Thu, 25 Oct 2012 14:12:19 +0200

Changed in cairo (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Colin Watson (cjwatson) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cairo - 1.12.2-1ubuntu2.1

---------------
cairo (1.12.2-1ubuntu2.1) quantal-proposed; urgency=low

  * debian/patches/font-handling-fixes.patch: Fix several font handling bugs
    in the PDF generator (LP: #1063618).
 -- Till Kamppeter <email address hidden> Wed, 17 Oct 2012 14:11:27 +0200

Changed in cairo (Ubuntu Quantal):
status: Fix Committed → Fix Released
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.