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 2014/09/19 21:24:34 UTC
[jira] [Commented] (PDFBOX-2338) IllegalStateException: recursive
definition
[ https://issues.apache.org/jira/browse/PDFBOX-2338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14141131#comment-14141131 ]
John Hewson commented on PDFBOX-2338:
-------------------------------------
The workaround for this in [r1625711|http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDSimpleFont.java?r1=1625711&r2=1625710&pathrev=1625711] isn't safe - there's no guaranteed reason to expect a font whose name begins with Symbol to use a symbolic encoding, although it's very likely.
> IllegalStateException: recursive definition
> -------------------------------------------
>
> Key: PDFBOX-2338
> URL: https://issues.apache.org/jira/browse/PDFBOX-2338
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox
> Affects Versions: 2.0.0
> Reporter: Tilman Hausherr
> Assignee: John Hewson
> Attachments: PDFBOX-2338-203886.pdf
>
>
> I get this exception with the attached file:
> {code}
> WARNUNG: Using fallback font 'TimesNewRomanPSMT' for 'Symbol,Italic'
> Sep 10, 2014 12:59:30 PM org.apache.pdfbox.pdmodel.font.PDSimpleFont toUnicode
> WARNUNG: No Unicode mapping for character code 119 in font Symbol,Italic
> Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: recursive definition
> at org.apache.pdfbox.pdmodel.font.PDSimpleFont.isFontSymbolic(PDSimpleFont.java:186)
> at org.apache.pdfbox.pdmodel.font.PDFont.isSymbolic(PDFont.java:370)
> at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.codeToGID(PDTrueTypeFont.java:289)
> at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.getWidthFromFont(PDTrueTypeFont.java:250)
> at org.apache.pdfbox.pdmodel.font.PDFont.getWidth(PDFont.java:216)
> {code}
> The file probably does have a problem, AR claims that the /BBox value for "Symbol,Italic" is incorrect. However it displays the file, and so does GSView.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)