Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-2169

NPE in PDTrueTypeFont.makeFontDescriptor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • None
    • None

    Description

      The attached file brings this exception when rendering or when extracting text

      java.lang.NullPointerException
      	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.makeFontDescriptor(PDTrueTypeFont.java:161)
      	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.getFontDescriptor(PDTrueTypeFont.java:150)
      	at org.apache.pdfbox.pdmodel.font.PDFont.getFontWidth(PDFont.java:814)
      	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.getFontWidth(PDTrueTypeFont.java:382)
      	at org.apache.pdfbox.pdmodel.font.PDFont.getFontWidth(PDFont.java:312)
      	at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:377)
      	at org.apache.pdfbox.util.operator.ShowText.process(ShowText.java:44)
      	at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:508)
      

      Attachments

        1. 000153.pdf
          2.09 MB
          Tilman Hausherr

        Issue Links

          Activity

            People

              jahewson John Hewson
              tilman Tilman Hausherr
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: