}
else {
// must check parent since field type is inherited
PDFObject parent = annotObject.getDictRef("Parent");
while (parent != null && parent.isIndirect()) {
parent = parent.dereference();
}
if (parent != null) {
fieldTypeRef = parent.getDictRef("FT");
this.fieldType = FieldType.getByCode(fieldTypeRef.getStringValue());
}