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:36:40 UTC
[jira] [Resolved] (PDFBOX-2338) IllegalStateException: recursive
definition
[ https://issues.apache.org/jira/browse/PDFBOX-2338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Hewson resolved PDFBOX-2338.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
The fix I made was to detect symbolic TTFs when encoding = null and the non-symbolic flag = false. I also added "Symbol,Italic" to the list of known substitutes because AR claims that it is a "base 14" font.
> 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
> Fix For: 2.0.0
>
> 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)