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

PDF to Image Conversion fails with "EOL encountered in white run"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.8.9, 2.0.0
    • None
    • Rendering

    Description

      One of my real-life PDF throws

      pdfbox-1.8.9> ./pdf-to-image.sh pdf/eol-encountered-in-white-run-01.pdf
      java -jar pdfbox-app-1.8.9.jar PDFToImage pdf/eol-encountered-in-white-run-01.pdf
      Apr 28, 2015 9:07:51 PM org.apache.pdfbox.util.operator.pagedrawer.Invoke process
      SEVERE: java.lang.RuntimeException: EOL encountered in white run.
      java.lang.RuntimeException: EOL encountered in white run.
      at org.apache.pdfbox.filter.TIFFFaxDecoder.decodeNextScanline(TIFFFaxDecoder.java:622)
      at org.apache.pdfbox.filter.TIFFFaxDecoder.decode2D(TIFFFaxDecoder.java:767)
      at org.apache.pdfbox.filter.CCITTFaxDecodeFilter.decode(CCITTFaxDecodeFilter.java:116)
      at org.apache.pdfbox.cos.COSStream.doDecode(COSStream.java:351)
      at org.apache.pdfbox.cos.COSStream.doDecode(COSStream.java:291)
      at org.apache.pdfbox.cos.COSStream.getUnfilteredStream(COSStream.java:225)
      at org.apache.pdfbox.pdmodel.graphics.xobject.PDCcitt.getRGBImage(PDCcitt.java:201)
      at org.apache.pdfbox.util.operator.pagedrawer.Invoke.process(Invoke.java:87)
      at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:557)
      at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:268)
      at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:235)
      at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:215)
      at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:139)
      at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:801)
      at org.apache.pdfbox.util.PDFImageWriter.writeImage(PDFImageWriter.java:130)
      at org.apache.pdfbox.PDFToImage.main(PDFToImage.java:226)
      at org.apache.pdfbox.PDFBox.main(PDFBox.java:96)

      Attachments

        1. eol-encountered-in-white-run-01.pdf
          181 kB
          Siegfried Goeschl

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sgoeschl Siegfried Goeschl
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: