ICEpdf
  1. ICEpdf
  2. PDF-1280

Annotation callback method pageAnnotationsInitialized not be called

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.3.1
    • Fix Version/s: 6.3.2
    • Component/s: Viewer RI
    • Labels:
      None
    • Environment:
      any

      Description

      While coding up an example on how to use the annotation callback I noticed our pageAnnotationsInitialized() method is no longer being called. The method should be added back to the pageViewComponentImpl.

        Activity

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

        The user would like to determine if the PDF has any annotations that don't have embedded content streams so that they can warn the user of possible missing content. In order to do this they would need to implemented AnnotationCallback something like this:

        public void pageAnnotationsInitialized(Page page) {
        List<Annotation> annotations = page.getAnnotations();
        if (annotations != null) {
        for (Annotation annotation : annotations)

        { boolean hasAppearanceStream = annotation.hasAppearanceStream(); System.out.println(); }

        }
        }

        Show
        Patrick Corless added a comment - The user would like to determine if the PDF has any annotations that don't have embedded content streams so that they can warn the user of possible missing content. In order to do this they would need to implemented AnnotationCallback something like this: public void pageAnnotationsInitialized(Page page) { List<Annotation> annotations = page.getAnnotations(); if (annotations != null) { for (Annotation annotation : annotations) { boolean hasAppearanceStream = annotation.hasAppearanceStream(); System.out.println(); } } }
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #52814 Wed Nov 28 20:34:52 MST 2018 patrick.corless PDF-1280 addition of annotation callback call for
        pageAnnotationsInitialize when page is loaded by PageViewComponentImpl.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/viewer-awt/src/main/java/org/icepdf/ri/common/views/PageViewComponentImpl.java
        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 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: