Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.0.1, 5.0.2
-
Fix Version/s: 5.0.3
-
Component/s: Font Engine
-
Labels:None
-
Environment:All
-
Salesforce Case Reference:
Description
When running the PDF file provided by the customer the following exception is thrown and the text is rendered as all special characters:
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(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:311)
at org.icepdf.core.pobjects.fonts.nfont.Font.init(Unknown Source)
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(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:367)
at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1017)
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.ArrayIndexOutOfBoundsException: 6
at org.icepdf.core.pobjects.fonts.nfont.i.readUint16(Unknown Source)
at org.icepdf.core.pobjects.fonts.nfont.NFontTrueType.readMaxpTable(Unknown Source)
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)
... 17 more
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(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:311)
at org.icepdf.core.pobjects.fonts.nfont.Font.init(Unknown Source)
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(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:367)
at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1017)
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.ArrayIndexOutOfBoundsException: 6
at org.icepdf.core.pobjects.fonts.nfont.i.readUint16(Unknown Source)
at org.icepdf.core.pobjects.fonts.nfont.NFontTrueType.readMaxpTable(Unknown Source)
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)
... 17 more
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Arran Mccullough
created issue -
Arran Mccullough
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case Reference | 5007000000TvxhxAAB |
Tyler Johnson
made changes -
Fix Version/s | 5.0.3 [ 11070 ] |
Patrick Corless
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Patrick Corless
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |