When trying to convert the attached PDF file with GS Head i get a /ioerror in token. The previous patches for this problem don't help.
Created attachment 2221 [details] PDF file
i see this error from zlib on stream object 19 (the third and final part of the content stream array on page one): inflate: incorrect data check this error is thrown when processing the zlib stream trailer, if the stream is either truncated or the adler checksum is wrong. xpdf swallows this stream without any issues; xpdf doesn't use zlib.
This error can only be reliably dealt with in the stream code. Ideally, we should do something to set the Repaired flag in the PDF interpreter, but I think that passing the condition back up to the PDF interpreter will be too invasive, so we only print a warning to stderr. --- src/szlibd.c (revision 6810) +++ src/szlibd.c (working copy) @@ -87,6 +87,15 @@ case Z_STREAM_END: return EOFC; default: + if (!strcmp("incorrect data check", zs->msg)) + { + /* Ignore errors when zlib streams fail on the checksum. + * Adobe, Apple and xpdf don't fail on pdf:s where this happens, + * so neither should we. fixes bug 688716. + */ + errprintf("warning: ignoring zlib error: %s\n", zs->msg); + return EOFC; + } return ERRC; } }
*** Bug 688961 has been marked as a duplicate of this bug. ***
*** Bug 689042 has been marked as a duplicate of this bug. ***