ICEpdf
  1. ICEpdf
  2. PDF-638

InvocationTargetException - Could not create instance of font file 1

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 6.0
    • Fix Version/s: 6.0
    • Component/s: Font Engine
    • Labels:
      None
    • Environment:
      All
    • Salesforce Case Reference:

      Description

      The following error stack trace is thrown when displaying the customer PDF:

      FINE: Could not create instance of font file 1
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
      at org.icepdf.core.pobjects.fonts.FontFactory.createFontFile(FontFactory.java:151)
      at org.icepdf.core.pobjects.fonts.FontDescriptor.init(FontDescriptor.java:306)
      at org.icepdf.core.pobjects.fonts.nfont.Font.init(Unknown Source)
      at org.icepdf.core.pobjects.Resources.getFont(Resources.java:150)
      at org.icepdf.core.util.content.AbstractContentParser.consume_Tf(AbstractContentParser.java:722)
      at org.icepdf.core.util.content.NContentParser.parseText(Unknown Source)
      at org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
      at org.icepdf.core.pobjects.Page.init(Page.java:368)
      at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1039)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:722)
      Caused by: java.lang.IllegalStateException
      at org.icepdf.core.pobjects.fonts.nfont.NFontType1.parseCFF(Unknown Source)
      at org.icepdf.core.pobjects.fonts.nfont.NFontType1.parse(Unknown Source)
      at org.icepdf.core.pobjects.fonts.nfont.NFontType1.<init>(Unknown Source)
      ... 16 more

        Activity

        Hide
        Patrick Corless added a comment -

        There are a few embedded fonts in the file in question and for some reason none of them are readable by the font engine. However font substitution kicks in and the font renders correctly.

        I'll need to dig a little deeper to try and figure out why the fonts aren't loading.

        Show
        Patrick Corless added a comment - There are a few embedded fonts in the file in question and for some reason none of them are readable by the font engine. However font substitution kicks in and the font renders correctly. I'll need to dig a little deeper to try and figure out why the fonts aren't loading.
        Hide
        Patrick Corless added a comment -

        PDF renders correctly without the embedded font. It would appear that the font could indeed be incorrectly encoded or corrupt.

        Show
        Patrick Corless added a comment - PDF renders correctly without the embedded font. It would appear that the font could indeed be incorrectly encoded or corrupt.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: