Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-3959

DataFormatException: invalid code lengths set with truncated file

    Details

      Description

      Displaying a page gets this:

      ava.util.zip.DataFormatException: invalid code lengths set
          java.util.zip.Inflater.inflateBytes(Native Method)
          java.util.zip.Inflater.inflate(Inflater.java:259)
          java.util.zip.Inflater.inflate(Inflater.java:280)
          org.apache.pdfbox.filter.FlateFilter.decompress(FlateFilter.java:107)
          org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:73)
          org.apache.pdfbox.cos.COSInputStream.create(COSInputStream.java:69)
          org.apache.pdfbox.cos.COSStream.createInputStream(COSStream.java:167)
          org.apache.pdfbox.pdmodel.PDPage.getContents(PDPage.java:168)
          org.apache.pdfbox.pdfparser.PDFStreamParser.<init>(PDFStreamParser.java:92)
          org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:505)
          org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:484)
          org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:158)
          org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:220)
          org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:147)
          org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:69)
          org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.doInBackground(PagePane.java:290)
          org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.doInBackground(PagePane.java:259)
          java.lang.Thread.run(Thread.java:748)
      

      This worked in 2.0.7

      Maybe similar:
      37APQMODK5B3LT3I3WJLSXWEZZ3P5IZG
      242SAVX2KCVP5ZGXMTNBK5DGT7FW67GF
      XUFPROXEEJ74A322UCIHD3UOHFQEURDJ

        Attachments

          Activity

            People

            • Assignee:
              lehmi Andreas Lehmkühler
              Reporter:
              tilman Tilman Hausherr
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: