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

Unsupported: Type1 PFB fonts in CIDFontType0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.0
    • None
    • PDModel
    • None

    Description

      java.lang.NullPointerException
      	at org.apache.pdfbox.pdmodel.font.PDCIDFontType0.getFontMatrix(PDCIDFontType0.java:169)
      	at org.apache.pdfbox.pdmodel.font.PDCIDFontType0.<init>(PDCIDFontType0.java:153)
      	at org.apache.pdfbox.pdmodel.font.PDFontFactory.createDescendantFont(PDFontFactory.java:121)
      	at org.apache.pdfbox.pdmodel.font.PDType0Font.<init>(PDType0Font.java:95)
      	at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:83)
      

      UPDATE: The PDF contains a CIDFontType0 which has a FontFile3 containing a Type1 PFB font. This is invalid, but Type1C is permitted and the two are equivalent, so it should be possible to handle this. However, the current design of PD CIDFontType0 does not permit it.

      Attachments

        1. PDFBOX-2642-277053-p3.pdf
          201 kB
          Tilman Hausherr

        Activity

          People

            Unassigned Unassigned
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: