You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2013/04/17 20:31:16 UTC

[jira] [Updated] (PDFBOX-1568) Summary : Null Pointer Exception while loading few TrueTypeFont.

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

Andreas Lehmkühler updated PDFBOX-1568:
---------------------------------------

    Fix Version/s:     (was: 1.7.0)
    
>  Summary : Null Pointer Exception while loading few TrueTypeFont.
> -----------------------------------------------------------------
>
>                 Key: PDFBOX-1568
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1568
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox, JempBox
>    Affects Versions: 1.7.0
>         Environment: Mac OS, Linux, Java
>            Reporter: Harippriya Parameswaran
>
> I tried loading few fonts Angelina, PreludeFLF, Miama in PDFBox 1.7.0. I am getting Null Pointer Exception in the PDFBox, the error is given below. I used  loadTTF method.
>                 String fontFile = angelina.ttf;
>                 PDFont pdffont = PDTrueTypeFont.loadTTF(doc,
>                          Sample.class.getClassLoader().getResource(fontFile).openStream());
> ERROR [com.sample.SampleImpl] (http--100.0.0.1-8080-2) Could not load PDTrueTypeFont for angelina.ttf: java.lang.NullPointerException
>         at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadDescriptorDictionary(PDTrueTypeFont.java:354)
>         at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:171)
>         at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:154)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira