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();
}
}
}
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)
}
}