private void handleSignature(AttributesImpl parentAttributes, PDSignatureField sigField,
XHTMLContentHandler handler) throws SAXException{
PDSignature sig = sigField.getSignature();
if (sig == null){
return;
}
Map<String, String> vals= new TreeMap<String, String>();
vals.put("name", sig.getName());
vals.put("contactInfo", sig.getContactInfo());
vals.put("location", sig.getLocation());
vals.put("reason", sig.getReason());
Calendar cal = sig.getSignDate();
if (cal != null){
dateFormat.setTimeZone(cal.getTimeZone());
vals.put("date", dateFormat.format(cal.getTime()));
}
//see if there is any data