Bug 689841

Summary: Blank pages in converted PDF file
Product: Ghostscript Reporter: Mike <mlungu777>
Component: PDF InterpreterAssignee: Ralph Giles <ralph.giles>
Status: RESOLVED DUPLICATE    
Severity: major CC: hensges
Priority: P4    
Version: master   
Hardware: PC   
OS: Windows NT   
Customer: Word Size: ---
Attachments: PDF file
Simplified sample file

Description Mike 2008-05-13 09:37:12 UTC
when converting the attached PDF file into PDF (or TIFF) with GS HEAD (i tried 
older GS versions and got the same problem) the resulting PDF file contains 
blank pages. 
PS: Adobe Preflight sais that the original document is a valid PDF.
Comment 1 Mike 2008-05-13 09:40:52 UTC
Created attachment 4013 [details]
PDF file
Comment 2 Alex Cherepanov 2008-05-13 15:36:20 UTC
Created attachment 4014 [details]
Simplified sample file
Comment 3 Alex Cherepanov 2008-05-13 15:39:50 UTC
This is a /JBIG2Decode issue. The simplified sample file contains just
a single image.
Comment 4 Alex Cherepanov 2008-05-16 06:26:10 UTC
*** Bug 689845 has been marked as a duplicate of this bug. ***
Comment 5 Ralph Giles 2008-05-23 13:59:23 UTC
The file is in fact invalid: the data length of the second segment inside the
JBIG2 stream is corrupt. jbig2dec consumes the entire stream without producing
output because it wants to buffer all the segment's data before starting decode.

If I replace the length with one determined from the size of the JBIG2Decode
stream, the file decodes properly.
Comment 6 Ralph Giles 2008-05-26 12:07:04 UTC
A work around for this problem was committed as r8778.

*** This bug has been marked as a duplicate of 689852 ***