ICEpdf
  1. ICEpdf
  2. PDF-659

File can't be opened in Adobe after adding an annotation

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.3
    • Fix Version/s: 5.0.4
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      All
    • Salesforce Case Reference:

      Description

      After adding an annotation to the provided PDF file and saving the file as a new PDF, the new file can't be opened in Adobe as it is being reported as being corrupt.
      1. invalid_musicsheet_original-test.pdf
        2.56 MB
        Arran Mccullough
      2. invalid_musicsheet_original.pdf
        2.56 MB
        Arran Mccullough

        Activity

        Arran Mccullough created issue -
        Hide
        Arran Mccullough added a comment -

        Attaching the original file(invalid_musicsheet_original.pdf) and the newly created one with the annotation(invalid_musicsheet_original-test.pdf
        ).

        Show
        Arran Mccullough added a comment - Attaching the original file(invalid_musicsheet_original.pdf) and the newly created one with the annotation(invalid_musicsheet_original-test.pdf ).
        Arran Mccullough made changes -
        Field Original Value New Value
        Attachment invalid_musicsheet_original.pdf [ 16480 ]
        Attachment invalid_musicsheet_original-test.pdf [ 16481 ]
        Arran Mccullough made changes -
        Salesforce Case Reference 5007000000W5LFLAA3
        Hide
        Patrick Corless added a comment -

        The corruptions issue seems to occur because we are writing a standard xref table as part of the incremental update and the file in question is using the newer compressed xref format. ICEpdf has no problem reading a file that has both formats but that's not the issue...

        Show
        Patrick Corless added a comment - The corruptions issue seems to occur because we are writing a standard xref table as part of the incremental update and the file in question is using the newer compressed xref format. ICEpdf has no problem reading a file that has both formats but that's not the issue...
        Hide
        Patrick Corless added a comment -

        I've updated our incremental updater class to not detect if the document is using an compressed xref stream and if found will output the compressed format. Took a little bit to implement but the saved file can now be opened with Acrobat.

        Show
        Patrick Corless added a comment - I've updated our incremental updater class to not detect if the document is using an compressed xref stream and if found will output the compressed format. Took a little bit to implement but the saved file can now be opened with Acrobat.
        Hide
        Patrick Corless added a comment -

        Committed fix for both the trunk and 5.0.1 branhc.

        Show
        Patrick Corless added a comment - Committed fix for both the trunk and 5.0.1 branhc.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 5.0.4 [ 11072 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #38284 Wed Sep 25 16:14:10 MDT 2013 patrick.corless PDF-659 added support for writing compresses xref objects when previous trailer is in this format.
        Files Changed
        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/Stream.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #38285 Wed Sep 25 16:14:26 MDT 2013 patrick.corless PDF-659 added support for writing compresses xref objects when previous trailer is in this format.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/util/Utils.java
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/Stream.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: