PdfFormFieldType
Specifies the type of a PDF form field.
from nutrient import PdfFormFieldTypeValues
| Name | Value | Description |
|---|---|---|
PdfFormFieldType.UNKNOWN | 0 | Unknown or undefined field type. |
PdfFormFieldType.TEXT | 1 | A text field where users can enter text from the keyboard. |
PdfFormFieldType.PUSH_BUTTON | 2 | A push button that responds immediately to user input without retaining a permanent value. |
PdfFormFieldType.CHECK_BOX | 3 | A check box that toggles between two states (on and off). |
PdfFormFieldType.RADIO_BUTTON | 4 | A radio button that is part of a mutually exclusive group. |
PdfFormFieldType.COMBO_BOX | 5 | A combo box (drop-down list), optionally with an editable text field. |
PdfFormFieldType.LIST_BOX | 6 | A scrollable list box for selecting one or more items. |
PdfFormFieldType.SIGNATURE | 7 | A signature field for electronic signatures. |
Usage Example
from nutrient import PdfFormFieldType
# Access enum valuesvalue = PdfFormFieldType.UNKNOWNprint(f"Value: {value}") # Output: Value: PdfFormFieldType.UNKNOWNprint(f"Integer value: {value.value}") # Output: Integer value: 0