addListBoxField

public final PdfListBoxField addListBoxField(String name, PdfPage page, float x, float y, float width, float height)

Adds a new list box field to the document on the specified page. After creating the list box, add options to the field using its methods.

Return

The newly created .

Parameters

name

The name of the list box field. Must be unique within the document.

page

The page where the list 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.