pdf2ps produces broken PostScript output on the attached PDF file

Bug #890270 reported by Till Kamppeter
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GS-GPL
Fix Released
Medium
ghostscript (Ubuntu)
Fix Released
Medium
priyesh pandey
Oneiric
Fix Released
Medium
Unassigned

Bug Description

Bug originally reported by Sven Meier as a comment on bug 419143, created a new bug report here as it is a different problem and we want to issue an SRU for Oneiric.

Convert the attached PDF file to PostScript with

pdf2ps REC10889-2-printout.pdf

Then try to display the resulting file with

gs REC10889-2-printout.ps

Output is as follows:

----------
till@till:~/ghostscript/testfiles$ gs REC10889-2-printout.ps
GPL Ghostscript 9.04 (2011-08-05)
Copyright (C) 2011 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
%%[ Error handled by opdfread.ps : ioerror; OffendingCommand: --nostringval--
]%%
>>showpage, press <return> to continue<<

Loading NimbusMonL-Regu font from
/usr/share/fonts/type1/gsfonts/n022003l.pfb... 3636440 2256496 6877360 4918268
1 done.
%%[STACK:
-mark-
-mark-
-mark-
-mark-
%%]%
>>showpage, press <return> to continue<<

till@till:~/ghostscript/testfiles$
----------

GS produces a blank page at first and then a page with the text:

----------
ERROR:
ioerror
OFFENDING COMMAND:
--nostringval--
STACK:
-mark-
-mark-
-mark-
-mark-
----------

This happens with Ghostscript 9,04 on Ubuntu Oneiric (11.10).

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :
Changed in ghostscript (Ubuntu):
importance: Undecided → Medium
status: New → In Progress
Changed in ghostscript (Ubuntu Oneiric):
status: New → In Progress
importance: Undecided → Medium
milestone: none → oneiric-updates
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ghostscript - 9.04~dfsg-2ubuntu2

---------------
ghostscript (9.04~dfsg-2ubuntu2) precise; urgency=low

  * debian/patches/020111114-4258227-lzw-encode-filter-fix.patch: In the LZW
    encoder filter increment the code size before writing out EOD when the
    last code reaches the current limit code. Fix incorrect bytes or decoding
    errors at the end of some LZW-encoded streams. Fixes problems of
    ps2write producing PostScript output with spurious extra bytes
    (LP: #890270, upstream bug #692679).
  * debian/patches/029111114-08dc129-ps2write-truetype-fix.patch: Improved
    the TrueType composite glyph handling of the "ps2write" output device.
    This way PDF output of LibreOffice gets correctly converted to PostScript
    for PostScript printers and PostScript-based drivers (LP: #879977, upstream
    bug #879977).
 -- Till Kamppeter <email address hidden> Mon, 14 Nov 2011 12:59:59 +0100

Changed in ghostscript (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I have uploaded a fixed Ghostscript package for Oneiric into-proposed which fixes this bug and bug 879977). As soon as it gets approved and available for download, this will get announced by another comment here. Please install and test the new package then.

A debdiff of the changes is attached.

Changed in ghostscript (Ubuntu Oneiric):
status: In Progress → Fix Committed
Revision history for this message
Chris Halse Rogers (raof) wrote : Please test proposed package

Hello Till, or anyone else affected,

Accepted ghostscript into oneiric-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Sven, can you install the proposed update for Oneiric as described in comment #4 and tell here whether it fixes the bug for you? Thanks.

Revision history for this message
svenmeier (sven-meiers) wrote :

Installed 9.04~dfsg-0ubuntu11.1, converted pdf and displayed successfully. I can confirm this bug being fixed.

Till, many thanks.

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

Sven, thank you very much for verifying the SRU package. Marking as verified ...

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ghostscript - 9.04~dfsg-0ubuntu11.1

---------------
ghostscript (9.04~dfsg-0ubuntu11.1) oneiric-proposed; urgency=low

  * debian/patches/020111114-4258227-lzw-encode-filter-fix.patch: In the LZW
    encoder filter increment the code size before writing out EOD when the
    last code reaches the current limit code. Fix incorrect bytes or decoding
    errors at the end of some LZW-encoded streams. Fixes problems of
    ps2write producing PostScript output with spurious extra bytes
    (LP: #890270, upstream bug #692679).
  * debian/patches/029111114-08dc129-ps2write-truetype-fix.patch: Improved
    the TrueType composite glyph handling of the "ps2write" output device.
    This way PDF output of LibreOffice gets correctly converted to PostScript
    for PostScript printers and PostScript-based drivers (LP: #879977, upstream
    bug #879977).
 -- Till Kamppeter <email address hidden> Mon, 14 Nov 2011 17:27:59 +0100

Changed in ghostscript (Ubuntu Oneiric):
status: Fix Committed → Fix Released
Changed in gs-gpl:
importance: Unknown → Medium
status: Unknown → Fix Released
madbiologist (me-again)
tags: added: oneiric
Changed in ghostscript (Ubuntu):
assignee: nobody → priyesh pandey (priyesh22)
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.