Error decoding stream

Help
2013-12-11
2013-12-12
  • Hi,

    I amt trying to parse a pdf using jPod and get this exception:
    de.intarsys.pdf.cos.COSRuntimeException: error decoding stream
    at de.intarsys.pdf.cos.COSStream.getDecodedBytes(COSStream.java:778)
    at de.intarsys.pdf.content.CSContent.createFromCos(CSContent.java:137)
    at de.intarsys.pdf.pd.PDPage.getContentStream(PDPage.java:395)
    ...
    Caused by: java.io.EOFException: Unexpected end of ZLIB input stream
    at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:223)
    at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141)
    at java.io.FilterInputStream.read(FilterInputStream.java:90)
    at
    de.intarsys.tools.stream.StreamTools.copyStream(StreamTools.java:184)
    at
    de.intarsys.pdf.filter.StreamBasedFilter.decode(StreamBasedFilter.java:74)
    at de.intarsys.pdf.filter.FlateFilter.decode(FlateFilter.java:201)
    at de.intarsys.pdf.filter.Filter.decode(Filter.java:129)
    ...

    The pdf file can be opened in Acrobat reader. This looks like bug 94 of
    PDFBOX (https://issues.apache.org/jira/browse/PDFBOX-94, you may
    download a sample pdf file which shows the bug).

    Regards,
    Julien.