Details
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 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #52814 | Wed Nov 28 20:34:52 MST 2018 | patrick.corless | pageAnnotationsInitialize when page is loaded by PageViewComponentImpl. |
Files Changed | ||||
MODIFY
/icepdf/trunk/icepdf/viewer/viewer-awt/src/main/java/org/icepdf/ri/common/views/PageViewComponentImpl.java
|
Patrick Corless
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
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) {
{ boolean hasAppearanceStream = annotation.hasAppearanceStream(); System.out.println(); }List<Annotation> annotations = page.getAnnotations();
if (annotations != null) {
for (Annotation annotation : annotations)
}
}