add Combo Box Field
public final PdfComboBoxField addComboBoxField(String name, PdfPage page, float x, float y, float width, float height)
Adds a new combo box (drop-down list) field to the document on the specified page. After creating the combo box, add options to the field using its methods.
Return
The newly created .
Parameters
name
The name of the combo box field. Must be unique within the document.
page
The page where the combo box field will be placed.
x
The x coordinate of the field's origin in points.
y
The y coordinate of the field's origin in points.
width
The width of the field in points.
height
The height of the field in points.
Throws
Thrown when no document is loaded.
Thrown when the field creation fails.