// TODO: need to find something better to put into these fields...
String annotation = null;
Iterator widgetIter = item.widgets.iterator();
while (widgetIter.hasNext()) {
PdfDictionary dict = (PdfDictionary) widgetIter.next();
// if the "/Type" value is "/Annot", then get the value of "/TU" for the annotation
/* Interesting... this doesn't work, I guess we have to iterate to find the stuff...
PdfObject typeValue = dict.get(new PdfName("/Type"));
if (typeValue != null && "/Annot".equals(typeValue.toString())) {
PdfObject tuValue = dict.get(new PdfName("/TU"));
annotation = tuValue.toString();
}
*/
PdfObject typeValue = null;
PdfObject tuValue = null;
Set dictKeys = dict.getKeys();
Iterator dictKeyIter = dictKeys.iterator();
while (dictKeyIter.hasNext()) {
PdfName dictKeyName = (PdfName) dictKeyIter.next();
PdfObject dictObject = dict.get(dictKeyName);
if ("/Type".equals(dictKeyName.toString())) {
typeValue = dictObject;
} else if ("/TU".equals(dictKeyName.toString())) {
tuValue = dictObject;