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

        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(); } } }
        Hide
        Patrick Corless added a comment -

        Marking as fixed.

        Show
        Patrick Corless added a comment - Marking as fixed.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: