ICEpdf
  1. ICEpdf
  2. PDF-629

InvocationTargetException: Could not create instance of font file 5

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.2
    • Fix Version/s: 5.0.3
    • Component/s: None
    • Labels:
      None
    • Environment:
      -
    • Salesforce Case Reference:

      Description

      Aug 1, 2013 2:38:02 PM org.icepdf.core.pobjects.fonts.FontFactory createFontFile
      FINE: Could not create instance of font file 5
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
      sorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
      torAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at org.icepdf.core.pobjects.fonts.FontFactory.createFontFile(FontFactory.java:1
      51)
      at org.icepdf.core.pobjects.fonts.FontDescriptor.init(FontDescriptor.java:311)
      at org.icepdf.core.pobjects.fonts.nfont.Font.init(Unknown Source)
      at org.icepdf.core.pobjects.Resources.getFont(Resources.java:147)
      at org.icepdf.core.util.content.AbstractContentParser.consume_Tf(AbstractConten
      tParser.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.Form.init(Form.java:168)
      at org.icepdf.core.util.content.AbstractContentParser.consume_Do(AbstractConten
      tParser.java:536)
      at org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
      at org.icepdf.core.pobjects.Form.init(Form.java:168)
      at org.icepdf.core.util.content.AbstractContentParser.consume_Do(AbstractConten
      tParser.java:536)
      at org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
      at org.icepdf.core.pobjects.Page.init(Page.java:367)
      at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageVie
      wComponentImpl.java:1008)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.ja
      va:895)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:9
      18)
      at java.lang.Thread.run(Thread.java:680)
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 6
      at org.icepdf.core.pobjects.fonts.nfont.i.readUint16(Unknown Source)
      at org.icepdf.core.pobjects.fonts.nfont.NFontTrueType.readMaxpTable(Unknown Sou
      rce)
      at org.icepdf.core.pobjects.fonts.nfont.NFontTrueType.parse(Unknown Source)
      at org.icepdf.core.pobjects.fonts.nfont.NFontOpenType.parse(Unknown Source)
      at org.icepdf.core.pobjects.fonts.nfont.i.<init>(Unknown Source)
      at org.icepdf.core.pobjects.fonts.nfont.NFontTrueType.<init>(Unknown Source)
      at org.icepdf.core.pobjects.fonts.nfont.NFontOpenType.<init>(Unknown Source)
      ... 22 more
      Aug 1, 2013 2:38:02 PM org.icepdf.core.pobjects.fonts.FontManager findFont
      FINER: ----> Found font: lucidabright family: Plain for: lucidabright- Plain
      Aug 1, 2013 2:38:02 PM org.icepdf.core.pobjects.fonts.FontManager getInstance
      FINE: Font Substitution: Found java font: LucidaBright for named font AdobeHand-B
      1. sf-12317.pdf
        5.70 MB
        Tyler Johnson

        Activity

        Hide
        Patrick Corless added a comment -

        I think this might be a duplicate of PDF-604.

        Show
        Patrick Corless added a comment - I think this might be a duplicate of PDF-604 .
        Hide
        Patrick Corless added a comment -

        There is an error reading the TAG POST table in teh TrueType font AdobeHand-A. The table read is only used as a check if the anymore of the readLocaTable needs to be read. I've updated the error handling and the rest of the font file seems to parse correctly.

        Show
        Patrick Corless added a comment - There is an error reading the TAG POST table in teh TrueType font AdobeHand-A. The table read is only used as a check if the anymore of the readLocaTable needs to be read. I've updated the error handling and the rest of the font file seems to parse correctly.
        Hide
        Patrick Corless added a comment -

        Updated 5.0.1 branch and trunk with patch.

        Show
        Patrick Corless added a comment - Updated 5.0.1 branch and trunk with patch.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: