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/12/19 20:14:13 UTC

[jira] [Resolved] (PDFBOX-2573) IllegalStateException: PDFBox bug: encoding should not be null!

     [ 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)