ICEpdf
  1. ICEpdf
  2. PDF-1081

Annotation mixed encoding support

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.1.3
    • Fix Version/s: 6.2
    • Component/s: Core/Parsing, Viewer RI
    • Labels:
      None
    • Environment:
      any

      Description

      The community member has had trouble encoding 4-byte character codes in popup annotations. Further debugging on our end has shown the issue is related to how we are encoding the StringObject when we save the changes to file.

      We are currently doing dump of the characters as a literal string. In order to handle a wider range of character codes we will need to encode the text values as hex strings. My initial prototype with popup annotations has shown this approach work as expected with all utf-8 values.

        Activity

        Patrick Corless created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 6.1.4 [ 13090 ]
        Hide
        Patrick Corless added a comment -

        This has been a very interesting exercise as we have now settled on an octal encode string as it more easily encrypted the the a hex string. The Popup annotation box as well as any related annotation param can now use a mixed byte encoding. Further work however is needed to get the input fields working correctly when rendering the content stream, see PDF-1083.

        Show
        Patrick Corless added a comment - This has been a very interesting exercise as we have now settled on an octal encode string as it more easily encrypted the the a hex string. The Popup annotation box as well as any related annotation param can now use a mixed byte encoding. Further work however is needed to get the input fields working correctly when rendering the content stream, see PDF-1083 .
        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 #49690 Thu Dec 15 08:23:33 MST 2016 patrick.corless PDF-1081 updated the our base LiteralStringObject to support octal encoded strings which allows for multi-byte encoding and saving of utf-8 encoded data.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/HexStringObject.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Dictionary.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/annotations/AbstractWidgetAnnotation.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/PInfo.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/util/Utils.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/LiteralStringObject.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/acroform/VariableTextFieldDictionary.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49693 Thu Dec 15 09:00:09 MST 2016 patrick.corless PDF-1081 updated the our base LiteralStringObject to support octal encoded strings which allows for multi-byte encoding and saving of utf-8 encoded data.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/core/src/org/icepdf/core/pobjects/PInfo.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/core/src/org/icepdf/core/pobjects/acroform/VariableTextFieldDictionary.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/core/src/org/icepdf/core/pobjects/Dictionary.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/core/src/org/icepdf/core/util/Utils.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/core/src/org/icepdf/core/pobjects/annotations/AbstractWidgetAnnotation.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/core/src/org/icepdf/core/pobjects/LiteralStringObject.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/core/src/org/icepdf/core/pobjects/HexStringObject.java
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: