ICEpdf
  1. ICEpdf
  2. PDF-928

Annotations without appearance streams are no longer rendering

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.0_P01
    • Fix Version/s: 6.0.1
    • Component/s: Core/Rendering
    • Labels:
      None
    • Environment:
      Any

      Description

      A forum user has pointed out an issue with 6.0 where annotations without content streams are not being rendered. This issue is unfortunate as changes where made to try to avoid resenting the content stream unnecessarily.

      Closer inspections reveals that this bug has been in the core for some time as the underling annotation Object will not regenerate the appearance stream if missing. The old behavior worked well for the Viewer RI but if a page was rendering using the core API the annotation missing appearance stream would not be created.

        Activity

        Patrick Corless created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 6.0.1 [ 12071 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #46121 Mon Oct 26 11:24:28 MDT 2015 patrick.corless PDF-928 fixed an issue where annotations without appearance streams were not having their content streams regenerated.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.0.0_P01/icepdf/core/src/org/icepdf/core/pobjects/annotations/TextMarkupAnnotation.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.0.0_P01/icepdf/core/src/org/icepdf/core/pobjects/annotations/InkAnnotation.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.0.0_P01/icepdf/core/src/org/icepdf/core/pobjects/annotations/SquareAnnotation.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.0.0_P01/icepdf/core/src/org/icepdf/core/pobjects/annotations/TextAnnotation.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.0.0_P01/icepdf/core/src/org/icepdf/core/pobjects/annotations/Annotation.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.0.0_P01/icepdf/core/src/org/icepdf/core/pobjects/annotations/FreeTextAnnotation.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.0.0_P01/icepdf/core/src/org/icepdf/core/pobjects/annotations/LinkAnnotation.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.0.0_P01/icepdf/core/src/org/icepdf/core/pobjects/annotations/CircleAnnotation.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.0.0_P01/icepdf/core/src/org/icepdf/core/pobjects/annotations/LineAnnotation.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #46122 Mon Oct 26 11:26:17 MDT 2015 patrick.corless PDF-928 fixed an issue where annotations without appearance streams were not having their content streams regenerated.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/annotations/FreeTextAnnotation.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/annotations/SignatureWidgetAnnotation.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/annotations/TextAnnotation.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/annotations/SquareAnnotation.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/annotations/Annotation.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/annotations/InkAnnotation.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/annotations/TextMarkupAnnotation.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/annotations/LineAnnotation.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/annotations/CircleAnnotation.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/annotations/LinkAnnotation.java
        Hide
        Patrick Corless added a comment -

        The base annotation objects have been updated to insure that if there is no appearance stream then one will be generated. This addresses both a headless print as well as the viewer RI components. It should be noted that the test is done in each annotation implementation init() method this insures that all need properties have been correctly parsed and the annotation is in a state that the regenerate appearance state will work correctly.

        Show
        Patrick Corless added a comment - The base annotation objects have been updated to insure that if there is no appearance stream then one will be generated. This addresses both a headless print as well as the viewer RI components. It should be noted that the test is done in each annotation implementation init() method this insures that all need properties have been correctly parsed and the annotation is in a state that the regenerate appearance state will work correctly.
        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 #46191 Fri Nov 06 08:28:12 MST 2015 patrick.corless PDF-928 touch up a null pointer issue if the colour array is not specified.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.0.0_P01/icepdf/core/src/org/icepdf/core/pobjects/annotations/TextAnnotation.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #46192 Fri Nov 06 08:28:56 MST 2015 patrick.corless PDF-928 touch up a null pointer issue if the colour array is not specified.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/annotations/TextAnnotation.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: