pdfGetFormFieldType

Get the type of a form field.
char *pdfGetFormFieldType(PDFFormFieldHandle field)
This function returns the type of a form field (whose handle was obtained with pdfGetFormField). The field type is one of: The returned string should not be modified or freed.
C:
PDFFormFieldHandle field; char *type, *name, *value; int nameLength, valueLength; for (i = 0; i < pdfGetNumFormFields(pdf); ++i) { field = pdfGetFormField(pdf, i); type = pdfGetFormFieldType(field); name = pdfGetFormFieldName(field, &nameLength); value = pdfGetFormFieldValue(field, &valueLength); ... if (value) { ... pdfFreeMemory(value); } pdfFreeMemory(name); }
pdfGetFormType
pdfGetNumFormFields
pdfGetFormField
pdfGetFormFieldName
pdfGetFormFieldValue