Bug 690282 - Conversion of PDF with JBIG2 chops image
Summary: Conversion of PDF with JBIG2 chops image
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Interpreter (show other bugs)
Version: master
Hardware: Other AIX
: P4 normal
Assignee: Henry Stiles
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-10 15:35 UTC by Nathan Aldridge
Modified: 2012-02-27 00:26 UTC (History)
4 users (show)

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Aldridge 2009-02-10 15:35:51 UTC
One particular PDF has a jbig2 compressed image as an xobject that fills an
entire page. I get, approximately, the first third of the image but the rest of
it is chopped. Acrobat seems to do ok with rendering and extracting the image
but Ghostscript does not. I have tried release 8.63 and the *bleeding edge*
build and I see no difference.
Comment 1 Nathan Aldridge 2009-02-10 15:37:16 UTC
Created attachment 4784 [details]
PDF page with jbig2 xobject
Comment 2 Nathan Aldridge 2009-02-10 15:38:33 UTC
Created attachment 4785 [details]
converted tiffg4 lacking the last part of the image
Comment 3 Alex Cherepanov 2009-02-10 17:25:53 UTC
Created attachment 4786 [details]
foo.pdf - simplified sample file
Comment 4 Alex Cherepanov 2009-02-10 17:36:28 UTC
I confirm that the file has a single image and Ghostscript shows only
a part of it. My simplified file has only 7 objects and makes this obvious.
Reassigning to the owner of JBIG2 decoder.
Comment 5 Ralph Giles 2009-02-11 17:06:51 UTC
Hi Nathan. You have a knack with finding these files!

Looks a bug in our arith decoder or symbol dictionary parser.
Comment 6 Nathan Aldridge 2009-02-11 17:19:56 UTC
Don't blame me Ralph, I'm only the messenger. I have an infinite supply of
crappy PDF files at my disposal and they keep on coming too!

N.
Comment 7 Henry Stiles 2010-10-20 00:07:52 UTC
Accidently marked fixed when fixing another bug
Comment 8 Benjamin Geißelmeier 2011-01-17 11:57:31 UTC
Hello folks,

is there any news related to this issue?

Maybe you could give me a hint where to look in the sources, so that I can try to provide a fix.

Thanks,
Benjamin
Comment 9 Shailesh Mistry 2011-08-04 16:29:39 UTC
Bug still reproducible in Ghostscript 9.03
Comment 10 Henry Stiles 2012-02-27 00:26:37 UTC
Reportedly this is fixed in the latest code, if not please reopen.