Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.6, 2.0.0
    • Fix Version/s: 1.8.9, 2.0.0
    • Component/s: PDModel
    • Labels:
      None
    • Environment:
      Mac OS X 10.10.
      Java 1.7

      Description

      I'm trying to use TextToPDF 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:

      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)
      

        Attachments

          Activity

            People

            • Assignee:
              jahewson John Hewson
              Reporter:
              mbergmann Manfred Bergmann
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: