@Override public Object annotationButton(final FormObject form){
  final int subtype=form.getParameterConstant(PdfDictionary.Subtype);
  if (subtype == PdfDictionary.Popup) {
    return createAnnotationPopup(form);
  }
  if (!form.isAppearanceUsed()) {
switch (subtype) {
case PdfDictionary.Text:
      return createAnnotationText(form);
case PdfDictionary.FreeText:
    return createAnnotationFreeText(form);
case PdfDictionary.Highlight:
  return createAnntoationHighlight(form);
case PdfDictionary.Underline:
return createAnnotationUnderline(form);
case PdfDictionary.Ink:
return createAnnotationInk(form);
case PdfDictionary.StrickOut:
return createAnnotationStrikeOut(form);
}
}
return setupAnnotationButton(form);
}

@ Override public Object annotationButton ( final FormObject form ) { final int subtype = form . getParameterConstant ( PdfDictionary . Subtype ) ; if ( subtype == PdfDictionary . Popup ) { return createAnnotationPopup ( form ) ; } if ( ! form . isAppearanceUsed ( ) ) { switch ( subtype ) { case PdfDictionary . Text : return createAnnotationText ( form ) ; case PdfDictionary . FreeText : return createAnnotationFreeText ( form ) ; case PdfDictionary . Highlight : return createAnntoationHighlight ( form ) ; case PdfDictionary . Underline : return createAnnotationUnderline ( form ) ; case PdfDictionary . Ink : return createAnnotationInk ( form ) ; case PdfDictionary . StrickOut : return createAnnotationStrikeOut ( form ) ; } } return setupAnnotationButton ( form ) ; }
setup annotations display with popups , etc
