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

java.lang.ClassCastException: org.apache.fontbox.cff.CharStringCommand cannot be cast to java.lang.Integer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • None

    Description

      p.59 of the attached file fails with

      java.lang.ClassCastException: org.apache.fontbox.cff.CharStringCommand cannot be cast to java.lang.Integer
      	at org.apache.fontbox.cff.Type1CharStringParser.parse(Type1CharStringParser.java:110)
      	at org.apache.fontbox.cff.Type1CharStringParser.parse(Type1CharStringParser.java:89)
      	at org.apache.fontbox.cff.Type1CharStringParser.parse(Type1CharStringParser.java:72)
      	at org.apache.fontbox.type1.Type1Font.getType1CharString(Type1Font.java:151)
      	at org.apache.fontbox.type1.Type1Font$Mapping.getType1CharString(Type1Font.java:207)
      	at org.apache.pdfbox.pdfviewer.font.Type1Glyph2D.<init>(Type1Glyph2D.java:93)
      	at org.apache.pdfbox.pdfviewer.font.Type1Glyph2D.<init>(Type1Glyph2D.java:65)
      Start parsing '002.zip002167.pdf'
      	at org.apache.pdfbox.rendering.PageDrawer.createGlyph2D(PageDrawer.java:556)
      

      Attachments

        1. 002-002166.pdf
          3.57 MB
          Tilman Hausherr

        Activity

          People

            jahewson John Hewson
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: