[
https://issues.apache.org/jira/browse/PDFBOX-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
John Hewson resolved PDFBOX-2573.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
I've altered readEncoding to avoid the recursive use of isSymbolic, which
allows our usual font substitution mechanism to work. However we're still not
recognising the font as a standard 14 Helvetica like Adobe Reader does. I've
opened a new issue for this: PDFBOX-2578.
> IllegalStateException: PDFBox bug: encoding should not be null!
> ---------------------------------------------------------------
>
> Key: PDFBOX-2573
> URL: https://issues.apache.org/jira/browse/PDFBOX-2573
> 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-2573-865252-p4.pdf, preflight.png
>
>
> This seems to be a follow-up of PDFBOX-2489 (some of the files that had the
> old bug are now ok, but not this one):
> {code}
> Exception in thread "main" java.lang.IllegalStateException: PDFBox bug:
> encoding should not be null!
> at
> org.apache.pdfbox.pdmodel.font.PDSimpleFont.isFontSymbolic(PDSimpleFont.java:205)
> at org.apache.pdfbox.pdmodel.font.PDFont.isSymbolic(PDFont.java:440)
> at
> org.apache.pdfbox.pdmodel.font.PDSimpleFont.readEncoding(PDSimpleFont.java:111)
> at
> org.apache.pdfbox.pdmodel.font.PDType1Font.<init>(PDType1Font.java:228)
> at
> org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:65)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)