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

NullPointerException CFFParser

    XMLWordPrintableJSON

Details

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

    Description

      Exception in thread "main" java.lang.NullPointerException
      at org.apache.fontbox.cff.CFFParser$Format1Charset.getCIDForGID(CFFParser.java:1326)

      when isCIDFont is false

      byte[] data = IOUtils.toByteArray(new FileInputStream("Broadsheet LDO.otf"));
      CFFParser p = new CFFParser();
      CFFFont ff = p.parse(data).get(0);
      ff.getCharset().getCIDForGID(0);

      Attachments

        Activity

          People

            lehmi Andreas Lehmkühler
            ssteiner Simon Steiner
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: