ICEpdf
  1. ICEpdf
  2. PDF-645

IncrementalUpdater provides deleted annotations

    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:
      Win XP

      Description

      As we need to store annotations seperatly we use the IncrementalUpdater to extract the annotations. Unfortunatly when all annotations of a document are deleted there will be still annotation information provided by the IncrementalUpdater. Cause of that we are not able to know when every once made annotation of a document is deleted and the document is free from annotations again.

      This is how it looks after some text and popup annotations are deleted:

      5 0 obj
      <</Resources <</XObject <</IMCyUpgFrN 7 0 R >> /ProcSet [/PDF /Text /ImageB /ImageC /ImageI] >> /MediaBox [0 0 592.56 832.68] /Type /Page /Parent 1 0 R /Contents 6 0 R /Annots 13 0 R >>
      endobj
      12 0 obj
      <</BaseFont /Helvetica /Encoding /WinAnsiEncoding /FirstChar 32 /Subtype /Type1 /Type /Subtype /Name /ice1 /LastChar 255 >>
      endobj
      13 0 obj
      []
      endobj
      16 0 obj
      <</BaseFont /Helvetica /Encoding /WinAnsiEncoding /FirstChar 32 /Subtype /Type1 /Type /Subtype /Name /ice1 /LastChar 255 >>
      endobj

        Activity

        Hide
        Patrick Corless added a comment -

        Thanks for the feedback Stephan, cleanup should be possible with the exception of the page object but I'll see what can be done.

        Show
        Patrick Corless added a comment - Thanks for the feedback Stephan, cleanup should be possible with the exception of the page object but I'll see what can be done.
        Hide
        Patrick Corless added a comment -

        I've update the Page class to try and clean up an annotations resources. In particular the cleanup of a TextAnnotation's font resource. The clean up should only happen for font that we have created as we can guarantee the font won't be used anywhere else.

        Show
        Patrick Corless added a comment - I've update the Page class to try and clean up an annotations resources. In particular the cleanup of a TextAnnotation's font resource. The clean up should only happen for font that we have created as we can guarantee the font won't be used anywhere else.
        Hide
        Patrick Corless added a comment -

        Fix has been checked into the trunk and 5.0.1 branch.

        Show
        Patrick Corless added a comment - Fix has been checked into the trunk and 5.0.1 branch.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: