getFormFieldType
Get the type of a form field.
getFormFieldType([in] LONG fieldHandle, [out, retval] BSTR *type)
This function returns the type of a form field (whose handle was
obtained with
getFormField
). The field type is one of:
"PushButton"
"RadioButton"
"Checkbox"
"FileSelect"
"MultilineText"
"Text"
"ComboBox"
"ListBox"
"Signature"
VB:
Dim field As Long
Dim page As Integer
Dim xMin As Double, yMin As Double, xMax As Double, yMax As Double
For i = 0 To pdf.getNumFormFields() - 1
field = pdf.getFormField(i)
type = pdf.getFormFieldType(field)
name = pdf.getFormFieldName(field)
pdf.getFormFieldBBox(field, page, xMin, yMin, xMax, yMax)
maxLength = pdf.getFormFieldMaxLength(field)
value = pdf.getFormFieldValue(field)
...
Next i