ps2pdf mangles document (breaks font)

Bug #780935 reported by AZ
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Fix Released
High
Unassigned
poppler (Ubuntu)
Invalid
High
Unassigned

Bug Description

Binary package hint: ghostscript

There is trouble trying to print [1].
Printing the postscript works fine as well as converting it to pdf using ps2pdf and then print the pdf file using evince.
Though, trying to print the pdf using the lp command line tool renders the printed document unreadable as almost all characters are missing in the output. Using gv to compare the postscript and the pdf document it appears the font lost all it anti-aliasing effects and is hardly readable. Converting the pdf using convert renders the image unreadble (blurred even at 1200 dpi), importing and printing using gimp renders the image looking fine.

[1] http://www.cs.unibo.it/~gorrieri/Papers/DIMACS_Fo_Go.ps.gz

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: ghostscript 9.01~dfsg-1ubuntu5
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Wed May 11 08:24:58 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
Lpstat:
 device for FS-1900: usb://Kyocera/FS-1900
 device for Kyocera-Mita-KM-4035-StuRa: ipp://nc18bf04/ipp
MachineType: Gigabyte Technology Co., Ltd. GA-MA770T-UD3
Papersize: a4
PpdFiles:
 Kyocera-Mita-KM-4035-StuRa: Kyocera Mita KM-4035 StuRa
 FS-1900: Kyocera Mita FS-1900
ProcEnviron:
 LANGUAGE=de_DE:en
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-2.6.38-8-generic root=/dev/mapper/hostname-root ro quiet splash vt.handoff=7
SourcePackage: ghostscript
UpgradeStatus: Upgraded to natty on 2011-05-07 (3 days ago)
dmi.bios.date: 10/18/2010
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F8
dmi.board.name: GA-MA770T-UD3
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF8:bd10/18/2010:svnGigabyteTechnologyCo.,Ltd.:pnGA-MA770T-UD3:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnGA-MA770T-UD3:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: GA-MA770T-UD3
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

Related branches

Revision history for this message
AZ (m-dev) wrote :
Revision history for this message
AZ (m-dev) wrote :

Further, using okular to the view the postscript document works fine but when viewing the pdf causes
endless "Error: Bad bounding box in Type 3 glyph" warnings. Evince on the other hand does not complain.

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

The problem is caused by the pdftopdf CUPS filter which is based on Poppler, so no Ghostscript bug.

To reproduce

ps2pdf DIMACS_Fo_Go.ps

This generates DIMACS_Fo_Go.pdf which is displayed correctly by evince or gs.

cupsfilter -m application/vnd.cups-pdf -p /etc/cups/ppd/<yourprinter>.ppd DIMACS_Fo_Go.pdf > out.pdf

out.pdf shows blank pages when displayed with gs and only a few characters when displayed with evince. On the terminal appear a lot of error messages in both cases.

pdftopdf is a part of the CUPS package and it uses Poppler. Changing bug tasks ...

affects: ghostscript (Ubuntu) → cups (Ubuntu)
Changed in cups (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Changed in poppler (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Subscribed upstream author of pdftopdf, Koji Otani, to this bug.

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

Problem occured also in bug 382379, comment #78.

Changed in cups (Ubuntu):
status: Confirmed → In Progress
Changed in poppler (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I got a patch from Koji Otani. I will apply it and the fix will get available in the nextCUPS package in Oneiric.

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

I have have applied the patch and tested it with the file attached here and also the file from bug 382379, comment #78, and it works in both cases. The fix is now committed to Debian's BZR repository of CUPS and will be included in the next CUPS package (1.5.0-2) in Oneiric. Thank you for the report.

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

Attaching the sample file of the original poster, to keep this bug report understandable when the file gets removed from its original location.

Changed in cups (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cups - 1.5.0-1ubuntu1

---------------
cups (1.5.0-1ubuntu1) oneiric; urgency=low

  * debian/patches/colord-support.patch: Added colord support. Thanks to
    Richard Hughes from Red Hat for the patch (LP: #787767).
  * debian/patches/no-conffile-timestamp.patch,
    debian/patches/read-embedded-options-from-incoming-postscript-and-add-to-ipp-attrs.patch,
    debian/patches/show-compile-command-lines.patch: Refreshed with quilt.
  * debian/control: Added "Recommends: colord" to the cups binary package.
  * debian/rules: Deactivated test suite failures only for this upload as the
    test suite must be adapted to colord. It changes the number of warnings
    in error_log which makes the test suite fail.
  * debian/local/filters/pdf-filters/pdftopdf/P2PFont.cxx,
    debian/local/filters/pdf-filters/pdftopdf/P2POutput.cxx,
    debian/local/filters/pdf-filters/pdftopdf/pdf2pdf.cxx: Several bug fixes
    on the pdftopdf filter from the upstream author Koji Otani. This fixes
    especially LP: #780935.
 -- Till Kamppeter <email address hidden> Wed, 10 Aug 2011 15:09:11 +0200

Changed in cups (Ubuntu):
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.