[ 
https://issues.apache.org/jira/browse/PDFBOX-2642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Hewson updated PDFBOX-2642:
--------------------------------
    Component/s:     (was: FontBox)
                 PDModel

> Unsupported: Type1 PFB fonts in CIDFontType0
> --------------------------------------------
>
>                 Key: PDFBOX-2642
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2642
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>         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: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to