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

java.lang.ClassCastException: org.apache.fontbox.cmap.CMapParser$Operator cannot be cast to java.lang.Number

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.19
    • Fix Version/s: 2.0.21, 3.0.0 PDFBox
    • Component/s: FontBox
    • Labels:
      None

      Description

      java.lang.ClassCastException: org.apache.fontbox.cmap.CMapParser$Operator cannot be cast to java.lang.Numberjava.lang.ClassCastException: org.apache.fontbox.cmap.CMapParser$Operator cannot be cast to java.lang.Number
      at org.apache.fontbox.cmap.CMapParser.parse(CMapParser.java:130) at org.apache.pdfbox.pdmodel.font.CMapManager.parseCMap(CMapManager.java:75) at org.apache.pdfbox.pdmodel.font.PDFont.readCMap(PDFont.java:213) at org.apache.pdfbox.pdmodel.font.PDFont.loadUnicodeCmap(PDFont.java:147) at org.apache.pdfbox.pdmodel.font.PDFont.<init>(PDFont.java:115) at org.apache.pdfbox.pdmodel.font.PDType0Font.<init>(PDType0Font.java:180) at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:97) at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:146) at org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:66) at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:875) at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:509) at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:483) at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:156) at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:270) at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:321) at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:243) at org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:229)

        Attachments

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              dbalasub Dushyanth Balasubramanian

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment