Details

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

      Description

      jIn the provided PDF file, it is missing a 'K' character on and important section of the PDF. This cases the rendered sentence to change meaning and in regards to this PDF can cause a miss-diagnosis.

      The customer would also like to know what is the underlying issue and if this can be changed by the producer of the PDF file to prevent any future issues in how they are creating the files.

        Activity

        Hide
        Patrick Corless added a comment -

        The following text block is split over two content streams. The missing 'K' is represented by the glyph id <002E>.

        BT
        /F1 8 Tf
        124.05 270.25 Td
        [<002E>

        5-Aug-2014 9:49:50 AM org.icepdf.core.util.content.NContentParser parse
        FINER: Content = -8<0048>6<004C>-3<0051>6<0003>3<0033>-8<0028>-8<0055>8<004C>-3<00460044>6<0055>8<0047>6<0048>6<0055>8<004A>6<0058>6<00560056>] TJ
        ET

        However there is an indexing error in the code that handles the parsing of <002E>. Because of the error null is returned to the calling method which is parsing the [...] array. So the resulting arrray looks something like [null, -8, <0048>, 6...] and thus the 'K' goes missing.

        Show
        Patrick Corless added a comment - The following text block is split over two content streams. The missing 'K' is represented by the glyph id <002E>. BT /F1 8 Tf 124.05 270.25 Td [<002E> 5-Aug-2014 9:49:50 AM org.icepdf.core.util.content.NContentParser parse FINER: Content = -8<0048>6<004C>-3<0051>6<0003>3<0033>-8<0028>-8<0055>8<004C>-3<00460044>6<0055>8<0047>6<0048>6<0055>8<004A>6<0058>6<00560056>] TJ ET However there is an indexing error in the code that handles the parsing of <002E>. Because of the error null is returned to the calling method which is parsing the [...] array. So the resulting arrray looks something like [null, -8, <0048>, 6...] and thus the 'K' goes missing.
        Hide
        Patrick Corless added a comment -

        Fixed the index check error and hex string parsing now return correctly and the missing K is now displayed.

        Show
        Patrick Corless added a comment - Fixed the index check error and hex string parsing now return correctly and the missing K is now displayed.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: