List fields = acroForm.getFields();
Iterator fieldsIter = fields.iterator();
while( fieldsIter.hasNext() )
{
PDField field = (PDField)fieldsIter.next();
String outputString =
field.getName() + "=" + field.toString() +
" rect=" + field.getRectangle();
System.out.println( outputString );
}
}