Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 6.0.0_P01
-
Fix Version/s: 6.0.1
-
Component/s: Core/Rendering
-
Labels:None
-
Environment:All
-
Support Case References:Support Case #13612 - https://icesoft.my.salesforce.com/5007000001TqtUS
Description
The following error is thrown when rendering the provided PDF file:
FINEST: Error parsing text block
java.lang.NullPointerException
at org.icepdf.core.util.content.AbstractContentParser.consume_Tf(AbstractContentParser.java:811)
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:178)
at org.icepdf.core.util.content.AbstractContentParser.consume_Do(AbstractContentParser.java:554)
at org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
at org.icepdf.core.pobjects.Page.init(Page.java:384)
at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1167)
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:745)
This is preventing the text from being displayed on the PDF.
FINEST: Error parsing text block
java.lang.NullPointerException
at org.icepdf.core.util.content.AbstractContentParser.consume_Tf(AbstractContentParser.java:811)
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:178)
at org.icepdf.core.util.content.AbstractContentParser.consume_Do(AbstractContentParser.java:554)
at org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
at org.icepdf.core.pobjects.Page.init(Page.java:384)
at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1167)
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:745)
This is preventing the text from being displayed on the PDF.
Really strange PDF encoding which we haven't seen before. The fonts for this PDF are encoded as direct object instead of referenced. I can't find anything in the spec as to the correctness of this grammar but its really not a big deal as its pretty easy to parse correctly.