[
https://issues.apache.org/jira/browse/PDFBOX-2642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14299150#comment-14299150
]
John Hewson commented on PDFBOX-2642:
-------------------------------------
Fixing the underlying problem will require a major rework of PDCIDFontType0, as
it wasn't designed for this scenario. I've added some code to detect this
specific problem and log an error, but I'm not in a position to do anything
more, currently.
> NPE in PDCIDFontType0.getFontMatrix
> -----------------------------------
>
> Key: PDFBOX-2642
> URL: https://issues.apache.org/jira/browse/PDFBOX-2642
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox
> Affects Versions: 2.0.0
> Reporter: Tilman Hausherr
> Assignee: John Hewson
> Attachments: PDFBOX-2642-277053-p3.pdf
>
>
> {code}
> java.lang.NullPointerException
> at
> org.apache.pdfbox.pdmodel.font.PDCIDFontType0.getFontMatrix(PDCIDFontType0.java:169)
> at
> org.apache.pdfbox.pdmodel.font.PDCIDFontType0.<init>(PDCIDFontType0.java:153)
> at
> org.apache.pdfbox.pdmodel.font.PDFontFactory.createDescendantFont(PDFontFactory.java:121)
> at
> org.apache.pdfbox.pdmodel.font.PDType0Font.<init>(PDType0Font.java:95)
> at
> org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:83)
> {code}
> UPDATE: The PDF contains a CIDFontType0 which has a FontFile3 containing a
> Type1 PFB font. This is invalid, but Type1C is permitted and the two are
> equivalent, so it should be possible to handle this. However, the current
> design of PD CIDFontType0 does not permit it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]