Description of problem: ghostscript 8.15 fails to parse and display PDF files from Xerox WorkCentre which have the segment data length field of the last segment set to -1 Version-Release number of selected component (if applicable): ghostscript-8.15.2-9.11.el5 How reproducible: Always Steps to Reproduce: 1. Download and untar the PDF files attached 2. gs -sDEVICE=x11 <file>.pdf Actual results: The page is blank Expected results: The text is visible Additional info: This is upstream bugs 689841 and 689852, fixed upstream in svn by revision r8778. Patch attached
Created attachment 424809 [details] Proposed patch from upstream svn commit 8778 This is from upstream commit 8778: * [r8778] jbig2dec/jbig2_page.c: Work around broken JBIG2Decode streams created by several versions of Xerox WorkCentre. Bugs 689841 and 689852. In these streams, a segment data length field is written as -1 expecting the decoder to infer it from the length of the remaining data.
*** Bug 501714 has been marked as a duplicate of this bug. ***
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Attempting to process a PDF file generated by Xerox WorkCentre resulted in an empty output. This was caused by the fact that in these documents, the segment data length field of the last segment is set to "-1", which was not handled correctly. With this update, PDF files generated by Xerox WorkCentre are now rendered as expected.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0137.html