[ https://issues.apache.org/jira/browse/PDFBOX-4872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17132913#comment-17132913 ]
ASF subversion and git services commented on PDFBOX-4872: --------------------------------------------------------- Commit 1878735 from Tilman Hausherr in branch 'pdfbox/branches/2.0' [ https://svn.apache.org/r1878735 ] PDFBOX-4872: avoid ClassCastException > java.lang.ClassCastException: org.apache.fontbox.cmap.CMapParser$Operator > cannot be cast to java.lang.Number > ------------------------------------------------------------------------------------------------------------ > > Key: PDFBOX-4872 > URL: https://issues.apache.org/jira/browse/PDFBOX-4872 > Project: PDFBox > Issue Type: Bug > Components: FontBox > Affects Versions: 2.0.19 > Reporter: Dushyanth Balasubramanian > Priority: Major > Fix For: 2.0.21, 3.0.0 PDFBox > > > 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) -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org