[ 
https://issues.apache.org/jira/browse/PDFBOX-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14249036#comment-14249036
 ] 

John Hewson edited comment on PDFBOX-2573 at 12/16/14 9:57 PM:
---------------------------------------------------------------

The underlying issue is that this file includes a standard 14 font with the 
name of "Helvetica~1d3", which we're not able to recognise. The font is not 
embedded and there is no FontDescriptor. OS X Preview omits the font entirely, 
however Acrobat renders it, and Preflight lists it as "base 14":

!preflight.png!

We need to add some heuristics for detecting standard 14 fonts. Looking for a 
missing FontDescriptor would be a good start.


was (Author: jahewson):
The underlying issue is that this file included a standard 14 font with the 
name of "Helvetica~1d3", which we're not able to recognise. The font is not 
embedded and there is no FontDescriptor. OS X Preview omits the font entirely, 
however Acrobat renders it, and Preflight lists it as "base 14":

!preflight.png!

We need to add some heuristics for detecting standard 14 fonts. Looking for a 
missing FontDescriptor would be a good start.

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

Reply via email to