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

        Arran Mccullough created issue -
        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.
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 6.0.1 [ 12071 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #46205 Tue Nov 10 10:38:07 MST 2015 patrick.corless PDF-939 fixed issue where we don't correctly process a direct referenced font dictionary.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.0.0_P01/icepdf/core/src/org/icepdf/core/pobjects/Resources.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #46206 Tue Nov 10 10:38:17 MST 2015 patrick.corless PDF-939 fixed issue where we don't correctly process a direct referenced font dictionary.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Resources.java
        Hide
        Patrick Corless added a comment -

        Marking as fixed.

        Show
        Patrick Corless added a comment - Marking as fixed.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: