FormFieldCount
Form fields
Description
Returns the total number of form fields in the selected document. The Index parameter of the various form field functions must be a number from 1 to the value returned by this function.
If a form field is deleted or flattened successfully it will be removed from the document, the total field count will be reduced and the field Index of the subsequent fields will be reduced by 1.
Syntax
Delphi
function TPDFlib.FormFieldCount: Integer;ActiveX
Function PDFlib::FormFieldCount As LongDLL
int DLFormFieldCount(int InstanceID);Return values
| 0 | There are no form fields |
|---|---|
| Non-zero | The number of form fields in the document |