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

John Hewson edited comment on PDFBOX-2571 at 12/16/14 9:34 PM:
---------------------------------------------------------------

The issue was an embedded CFF CID font with a missing charset. PDFBox was 
trying to default to ISOAdobe, but CFF CID fonts should not use predefined 
charsets at all. The actual charset for this font is empty, i.e. the font is 
malformed.


was (Author: jahewson):
The issue was an embedded CFF CID font with a missing charset. PDFBox was 
trying to default to ISOAdobe, but CFF CID fonts should not use predefined 
charsets at all. The actual charset for this font is empty, i.e. the font is 
malformed,

> IllegalStateException: Not a CIDFont
> ------------------------------------
>
>                 Key: PDFBOX-2571
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2571
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>            Assignee: John Hewson
>             Fix For: 2.0.0
>
>         Attachments: 518330.pdf
>
>
> {code}
> Exception in thread "main" java.lang.IllegalStateException: Not a CIDFont
>       at org.apache.fontbox.cff.CFFCharset.getGIDForCID(CFFCharset.java:134)
>       at 
> org.apache.fontbox.cff.CFFCIDFont.getType2CharString(CFFCIDFont.java:227)
>       at 
> org.apache.pdfbox.pdmodel.font.PDCIDFontType0.getType2CharString(PDCIDFontType0.java:224)
>       at 
> org.apache.pdfbox.rendering.font.CIDType0Glyph2D.getPathForCharacterCode(CIDType0Glyph2D.java:63)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to