ICEpdf
  1. ICEpdf
  2. PDF-939

NullPointerException - Error parsing text block

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.0_P01
    • Fix Version/s: 6.0.1
    • Component/s: Core/Rendering
    • Labels:
      None
    • Environment:
      All

      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.

        Activity

        Hide
        Patrick Corless added a comment -

        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.

        Show
        Patrick Corless added a comment - 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.
        Hide
        Patrick Corless added a comment -

        Marking as fixed.

        Show
        Patrick Corless added a comment - Marking as fixed.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: