[
https://issues.apache.org/jira/browse/PDFBOX-2598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14275751#comment-14275751
]
John Hewson commented on PDFBOX-2598:
-------------------------------------
Yes, the "isCIDFont" checks in PDFBOX-2571 were backwards.
> IllegalArgumentException in CFFParser.readCharset
> -------------------------------------------------
>
> Key: PDFBOX-2598
> URL: https://issues.apache.org/jira/browse/PDFBOX-2598
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox, Parsing
> Affects Versions: 2.0.0
> Reporter: Tilman Hausherr
> Labels: regression
> Attachments: PDFBOX-2598-020616-p3.pdf
>
>
> {code}
> Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException
> at org.apache.fontbox.cff.CFFParser.readCharset(CFFParser.java:960)
> at org.apache.fontbox.cff.CFFParser.parseFont(CFFParser.java:401)
> at org.apache.fontbox.cff.CFFParser.parse(CFFParser.java:109)
> at
> org.apache.pdfbox.pdmodel.font.PDType1CFont.<init>(PDType1CFont.java:98)
> at
> org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:62)
> at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:92)
> {code}
> This is a regression (of PDFBOX-2571 ?): the exception occurs also in
> preflight, but this file (and others with the same problem) didn't have this
> problem a month ago.
> Some debug info:
> {code}
> font: ACaslonExp-SemiboldItalic
> charsetId: 2
> isCIDFont: false
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)