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

PDFToImage IndexOutOfBoundsException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.8, 1.8.9, 2.0.0
    • 1.8.9, 2.0.0
    • None
    • None

    Description

      When I convert the pdf test file to image I get a Exception :

      (I test with the latest trunk commit git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1663941)

      > java -jar ./app/target/pdfbox-app-2.0.0-SNAPSHOT.jar PDFToImage -imageType png testFile.pdf

      Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      at java.util.ArrayList.rangeCheck(ArrayList.java:635)
      at java.util.ArrayList.get(ArrayList.java:411)
      at org.apache.pdfbox.contentstream.operator.text.ShowText.process(ShowText.java:38)
      at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:802)
      at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:464)
      at org.apache.pdfbox.contentstream.PDFStreamEngine.processAnnotation(PDFStreamEngine.java:301)
      at org.apache.pdfbox.contentstream.PDFStreamEngine.showAnnotation(PDFStreamEngine.java:382)
      at org.apache.pdfbox.rendering.PageDrawer.showAnnotation(PageDrawer.java:791)
      at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:164)
      at org.apache.pdfbox.rendering.PDFRenderer.renderPage(PDFRenderer.java:203)
      at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:136)
      at org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:95)
      at org.apache.pdfbox.tools.PDFToImage.main(PDFToImage.java:236)
      at org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:89)

      Pages 1 to 6 are ok, only the seventh page is ko

      Attachments

        1. testFile.pdf
          461 kB
          ccouturi

        Activity

          People

            tilman Tilman Hausherr
            ccouturi ccouturi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: