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 2014/07/28 20:16:39 UTC

[jira] [Commented] (PDFBOX-2165) NPE with barcode ttf font

    [ https://issues.apache.org/jira/browse/PDFBOX-2165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14076511#comment-14076511 ] 

Andreas Lehmkühler commented on PDFBOX-2165:
--------------------------------------------

Duplicates PDFBOX-1790, it's another exception but the same cause.

> NPE with barcode ttf font
> -------------------------
>
>                 Key: PDFBOX-2165
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2165
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Writing
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>              Labels: barcode, font, truetype
>         Attachments: Code39.ttf
>
>
> Inspired by this complaint
> http://stackoverflow.com/a/24432822/535646
> I tried loading barcode fonts with PDFBox, with the command
> {code}
> PDTrueTypeFont.loadTTF()
> {code}
> With the file Code39.ttf that I get here
> http://www.myfont.de/download.php?winfont=bar-code-39-lesbar&type=zip
> I get this exception:
> {code}
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.makeFontDescriptor(PDTrueTypeFont.java:328)
> 	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.<init>(PDTrueTypeFont.java:127)
> 	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:80)
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)