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

PDFToImage IndexOutOfBoundsException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.8, 1.8.9, 2.0.0
    • Fix Version/s: 1.8.9, 2.0.0
    • Component/s: None
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: