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

POCIDFontType2 (Wingdings) encode throws a NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.21, 2.0.22, 2.0.23, 2.0.24, 2.0.25
    • 2.0.26, 3.0.0 PDFBox
    • FontBox
    • None
    • PDFBox 2.0.25 used via a gradle plugin (has been tested as far back as PDFBox 2.0.21)

    Description

      Problem;

      Notes:

      • The issue seems to lie within PDFont POCIDFontType2
      • The POCIDFontType2 encode function is only known to throw IOException or UnsupportedOperationException(s)
      • Please see the attached test file with the font in question that causes the NullPointerException to be thrown
      • Stacktrace: 
        java.lang.NullPointerException
        	at org.apache.pdfbox.pdmodel.font.PDCIDFontType2.encode(PDCIDFontType2.java:359)
        	at org.apache.pdfbox.pdmodel.font.PDType0Font.encode(PDType0Font.java:424)
        	at org.apache.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:333)
        

      Attachments

        1. Wingdings.pdf
          142 kB
          Matthew Bayer

        Activity

          People

            tilman Tilman Hausherr
            mbayerPK Matthew Bayer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: