Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.2.2
-
Fix Version/s: 4.3
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:-
Description
The attached PDF does not render and throws the following exception:
FINE: Error initializing Page.
java.lang.ClassCastException: org.icepdf.core.pobjects.fonts.nfont.NFontType1 cannot be cast to org.icepdf.core.pobjects.fonts.nfont.NFontTrueType
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:240)
at org.icepdf.core.util.ContentParser.consume_Tf(ContentParser.java:2079)
at org.icepdf.core.util.ContentParser.parseText(ContentParser.java:1085)
at org.icepdf.core.util.ContentParser.parse(ContentParser.java:277)
at org.icepdf.core.pobjects.Page.init(Page.java:390)
at org.icepdf.core.views.swing.PageViewComponentImpl$PageInitilizer.run(PageViewComponentImpl.java:1077)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
FINE: Error initializing Page.
java.lang.ClassCastException: org.icepdf.core.pobjects.fonts.nfont.NFontType1 cannot be cast to org.icepdf.core.pobjects.fonts.nfont.NFontTrueType
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:240)
at org.icepdf.core.util.ContentParser.consume_Tf(ContentParser.java:2079)
at org.icepdf.core.util.ContentParser.parseText(ContentParser.java:1085)
at org.icepdf.core.util.ContentParser.parse(ContentParser.java:277)
at org.icepdf.core.pobjects.Page.init(Page.java:390)
at org.icepdf.core.views.swing.PageViewComponentImpl$PageInitilizer.run(PageViewComponentImpl.java:1077)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
This appears to have been fixed with changes made for
PDF-354. Marking as resolved.