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/16 22:35:14 UTC

[jira] [Comment Edited] (PDFBOX-2571) IllegalStateException: Not a CIDFont

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