getFormFieldBBox
Get a form field's bounding box.
getFormFieldBBox([in] LONG fieldHandle, [out] int *page, [out] double *xMin, [out] double *yMin, [out] double *xMax, [out] double *yMax)
This function returns the page number and bounding box of a form field
(whose handle was obtained with
getFormField
). The bounding box
is in the PDF coordinate space.
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