Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-15895

Viewfile macro throws a NPE related to Truetype fonts when processing select files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Medium
    • None
    • 2.10
    • None

    Description

      When viewing the attached PDF file with the {viewfile} macro, portions of the page are missing and the following error is recorded in the logs:

      java.lang.NullPointerException
              at com.sun.pdfview.font.TTFFont.<init>(TTFFont.java:82)
              at com.sun.pdfview.font.CIDFontType2.<init>(CIDFontType2.java:62)
              at com.sun.pdfview.font.PDFFont.getFont(PDFFont.java:177)
              at com.sun.pdfview.font.Type0Font.<init>(Type0Font.java:51)
              at com.sun.pdfview.font.PDFFont.getFont(PDFFont.java:146)
              at com.sun.pdfview.PDFParser.getFontFrom(PDFParser.java:1162)
              at com.sun.pdfview.PDFParser.iterate(PDFParser.java:731)
              at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:103)
              at java.lang.Thread.run(Thread.java:613)
      

      This behavior is different than that described when working with missing TTF fonts in our Office Connector instructions. Installing the TTF fonts included with Windows in the JVM does not affect the problem at all.

      Attachments

        1. TTFexample.pdf
          363 kB
          TonyA

        Activity

          People

            shaffenden Steve Haffenden (Inactive)
            aatkins TonyA
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: