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

IndexOutOfBoundsException: while parsing few pdf's

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.8.0
    • Component/s: Text extraction
    • Environment:
      Windows XP, RAD 7.5, Websphere 6.1, pdfbox-app-1.5.0.jar, fontbox-1.5.0.jar

      Description

      Hi Team, The text extraction works fine with most pdf's but it failed for couple of them with the below error: The pdf can be found here http://cid-a3aa7f7d9888874d.office.live.com/self.aspx/Public/getting%5E_started%5E_with%5E_Flex3.pdf . Let me know if this is a bug or an issue with the pdf.

      java.lang.IndexOutOfBoundsException: Index: 2,Size: 2
      at java.util.SubList.rangeCheck(AbstractList.java:864)
      at java.util.SubList.get(AbstractList.java:737)
      at org.apache.fontbox.cff.CharStringConverter.drawCurve(CharStringConverter.java:415)
      at org.apache.fontbox.cff.CharStringConverter.handleType2Command(CharStringConverter.java:277)
      at org.apache.fontbox.cff.CharStringConverter.handleCommand(CharStringConverter.java:81)
      at org.apache.fontbox.cff.CharStringHandler.handleSequence(CharStringHandler.java:53)
      at org.apache.fontbox.cff.CharStringConverter.handleType2Command(CharStringConverter.java:307)
      at org.apache.fontbox.cff.CharStringConverter.handleCommand(CharStringConverter.java:81)
      at org.apache.fontbox.cff.CharStringHandler.handleSequence(CharStringHandler.java:53)
      at org.apache.fontbox.cff.CharStringConverter.convert(CharStringConverter.java:64)
      at org.apache.fontbox.cff.CFFFont$Mapping.toType1Sequence(CFFFont.java:374)
      at org.apache.fontbox.cff.AFMFormatter.renderFont(AFMFormatter.java:126)
      at org.apache.fontbox.cff.AFMFormatter.printFontMetrics(AFMFormatter.java:64)
      at org.apache.fontbox.cff.AFMFormatter.printFont(AFMFormatter.java:57)
      at org.apache.fontbox.cff.AFMFormatter.format(AFMFormatter.java:50)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lehmi Andreas Lehmkühler
                Reporter:
                nn14 Nilesh Naik
              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: