ICEpdf
  1. ICEpdf
  2. PDF-1122

Japanese fonts rendered overlapping

    Details

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

      Description

      With the provided PDF file, some of the font characters are rendered overlapping each other.

        Activity

        Arran Mccullough created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 6.2.2 [ 13097 ]
        Hide
        Patrick Corless added a comment -

        This was extremely difficult to find, after verifying quite of bit of content parser code I went a little deeper and found an issue in how we are handling the conversion of hex string to byte values.

        In this case consider [<20>-500<874020>]TJ which is a mixed byte string representation. It's composed of 20, 8740 and 20. When our HexStringObject parser hit the 20 it was appending '00' which was later parsed as two characters. This broke the layout for the page in question.

        Show
        Patrick Corless added a comment - This was extremely difficult to find, after verifying quite of bit of content parser code I went a little deeper and found an issue in how we are handling the conversion of hex string to byte values. In this case consider [<20>-500<874020>] TJ which is a mixed byte string representation. It's composed of 20, 8740 and 20. When our HexStringObject parser hit the 20 it was appending '00' which was later parsed as two characters. This broke the layout for the page in question.
        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 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #50542 Wed Feb 15 14:50:03 MST 2017 patrick.corless PDF-1122 fixed hex parsing issue with mixed bytes.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.2.0/icepdf/core/src/org/icepdf/core/pobjects/HexStringObject.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.2.0/icepdf/core/src/org/icepdf/core/util/content/AbstractContentParser.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #50550 Thu Feb 16 12:06:50 MST 2017 patrick.corless PDF-1122 change how we lengthen hex string as to not accidently chang the number value.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.2.0/icepdf/core/src/org/icepdf/core/pobjects/HexStringObject.java
        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: