gs has issues with pdfs which only consist of large images

Bug #1525225 reported by Thorsten
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ghostscript (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Hello,

there seems to be a bug in the version 9.16 of ghostscript which prevents using ghostscript with pdfs created by some canon scanners which only consist of large images.
I wrongly associated this error with the following bug https://bugs.launchpad.net/ubuntu/+source/poppler-data/+bug/1438494, however cliddell corrected me and also directly pointed to his committed patch:
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=668406a5 which should fix this issue.

With version 9.18 from http://www.ghostscript.com/download/gsdnld.html its working flawlessly.

The bug occurs when attempting to minimize the file size of such a pdf and the following error message is shown: (an example pdf is attached to this post)

$ gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -sOutputFile=out.pdf SCN_0002.pdf
GPL Ghostscript 9.16 (2015-03-30)
Copyright (C) 2015 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 1.
Page 1
**** Error reading a content stream. The page may be incomplete.
**** File did not complete the page properly and may be damaged.

**** This file had errors that were repaired or ignored.
**** The file was produced by:
**** >>>> MP540 series <<<<
**** Please notify the author of the software that produced this
**** file that it does not conform to Adobe's published PDF
**** specification.

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

Do you mean that this bug is fixed in GS 9.18 via

http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=668406a5

and you like to have an SRU for Wily with this patch backported into Wily's GS 9.16?

Changed in ghostscript (Ubuntu):
status: New → Incomplete
Revision history for this message
cliddell (cjl) wrote :

The problem is already fixed in 9.18. If wanted to apply the fix to the 9.16 code in Ubuntu 15.10, you can pull the patch from:
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=668406a5

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

[Expired for ghostscript (Ubuntu) because there has been no activity for 60 days.]

Changed in ghostscript (Ubuntu):
status: Incomplete → Expired
Changed in ghostscript (Ubuntu):
status: Expired → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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