Bug 689841 - Blank pages in converted PDF file
Summary: Blank pages in converted PDF file
Status: RESOLVED DUPLICATE of bug 689852
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Interpreter (show other bugs)
Version: master
Hardware: PC Windows NT
: P4 major
Assignee: Ralph Giles
URL:
Keywords:
: 689845 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-05-13 09:37 UTC by Mike
Modified: 2008-05-26 12:07 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
PDF file (14.14 KB, application/pdf)
2008-05-13 09:40 UTC, Mike
Details
Simplified sample file (10.83 KB, application/pdf)
2008-05-13 15:36 UTC, Alex Cherepanov
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***