ICEpdf
  1. ICEpdf
  2. PDF-846

Document.getPageText hang for some pdf's

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.1
    • Fix Version/s: 5.1.2
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      All

      Description

      When rendering page 6 or 11 in the provided PDF file, the thread seems to hang which is causing the pages to not render. All other pages in the file render correctly.

      his is the stack trace:

      Thread 1696: (state = IN_JAVA)
      - org.icepdf.core.util.content.a.a() @bci=92 (Compiled frame; information may be imprecise)
      - org.icepdf.core.util.content.a.a() @bci=45 (Compiled frame)
      - org.icepdf.core.util.content.a.a() @bci=102 (Compiled frame)
      - org.icepdf.core.util.content.NContentParser.parseInlineImage(org.icepdf.core.util.content.a, org.icepdf.core.pobjects.graphics.Shapes, org.icepdf.core.pobjects.Page) @bci=197 (Interpreted frame)
      - org.icepdf.core.util.content.NContentParser.parseTextBlocks(byte[][]) @bci=194 (Compiled frame)
      - org.icepdf.core.pobjects.Page.getText() @bci=147, line=1525 (Interpreted frame)
      - org.icepdf.core.pobjects.Document.getPageText(int) @bci=27, line=1139 (Interpreted frame)

        Activity

        Hide
        Patrick Corless added a comment -

        The root of the problem is related to parsing some unexpected or malformed inline image parameters. Need to work our a strategy for our lexer to correctly handle this unusual case.

        Show
        Patrick Corless added a comment - The root of the problem is related to parsing some unexpected or malformed inline image parameters. Need to work our a strategy for our lexer to correctly handle this unusual case.
        Hide
        Patrick Corless added a comment -

        After a little more research null is a valid value put it's unusual to encounter it in a dictionary entry. I've updated the Lexer to handle null and return the equivalent null Java value.

        Show
        Patrick Corless added a comment - After a little more research null is a valid value put it's unusual to encounter it in a dictionary entry. I've updated the Lexer to handle null and return the equivalent null Java value.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: