You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/12/11 21:41:13 UTC
[jira] [Commented] (PDFBOX-2559) TTF font cannot be loaded
[ https://issues.apache.org/jira/browse/PDFBOX-2559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14243102#comment-14243102 ]
Tilman Hausherr commented on PDFBOX-2559:
-----------------------------------------
The link doesn't work. Please try again with the upcoming 1.8.8 version
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/1.8.8-SNAPSHOT/
and the 2.0 version:
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.0-SNAPSHOT/
> TTF font cannot be loaded
> -------------------------
>
> Key: PDFBOX-2559
> URL: https://issues.apache.org/jira/browse/PDFBOX-2559
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 1.8.6
> Environment: Mac OS X 10.10.
> Java 1.7
> Reporter: Manfred Bergmann
>
> I'm trying to use Text2PDF from the main bundle of PDFBox.
> To make different encodings work I've read that the font Doulus should be used.
> http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=DoulosSIL_download
> However upload specifying the font with the -ttf options I'm seeing the following exception:
> {code}
> pacsaar:jocon-test-local mbergmann$ java -jar lib/pdfbox-app-1.8.6.jar TextToPDF -ttf ~/Downloads/DoulosSIL-5.000/DoulosSIL-R.ttf Test33-pdfbox.pdf Test33-TextJP-UTF8.txt
> java.lang.NullPointerException
> at org.apache.pdfbox.pdmodel.common.PDStream.<init>(PDStream.java:120)
> at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:189)
> at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:175)
> at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:162)
> at org.apache.pdfbox.TextToPDF.main(TextToPDF.java:193)
> at org.apache.pdfbox.PDFBox.main(PDFBox.java:100)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)