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.pdf
        2.56 MB
        Arran Mccullough
      2. invalid_musicsheet_original-test.pdf
        2.56 MB
        Arran Mccullough

        Activity

        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 ).
        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: