You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2015/05/03 20:38:06 UTC
[jira] [Comment Edited] (PDFBOX-2170) java.lang.ClassCastException:
org.apache.fontbox.cff.CharStringCommand cannot be cast to
java.lang.Integer
[ https://issues.apache.org/jira/browse/PDFBOX-2170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14525943#comment-14525943 ]
John Hewson edited comment on PDFBOX-2170 at 5/3/15 6:37 PM:
-------------------------------------------------------------
There is indeed a typo on this line, but it's not that. The second case should be accusing {{[1]}} instead of {{[0]}}. The command for "div" is in fact 12 12.
was (Author: jahewson):
There is indeed a typo on this line, but it's not that. The second case should be accusing {{[1]}} instead of {{[0]}}. The command for "div" is in fact 12 12.
> java.lang.ClassCastException: org.apache.fontbox.cff.CharStringCommand cannot be cast to java.lang.Integer
> ----------------------------------------------------------------------------------------------------------
>
> Key: PDFBOX-2170
> URL: https://issues.apache.org/jira/browse/PDFBOX-2170
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Tilman Hausherr
> Assignee: John Hewson
> Labels: type1font
> Fix For: 2.0.0
>
> Attachments: 002-002166.pdf
>
>
> p.59 of the attached file fails with
> {code}
> 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)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org