public interface Form<T extends FormField> extends Iterable<T>
Provides access to form data available in a PDF document. Currently, the only
implementation of this interface is AcroForm
,
which represents form data held in an interactive AcroForm
embedded in some PDF
documents.
Conceptually, Form
s are collections of key/value pairs,
represented by FormField
s.
Modifier and Type | Method and Description |
---|---|
Document |
getDocument()
Returns the source
Document from which this Form was extracted. |
T |
getField(String fieldName)
Returns the field held by this form with the given name.
|
Collection |
getFieldNames()
Returns a
Collection of the names of all of the fields held by this form. |
Iterator<T> |
iterator()
|
T getField(String fieldName)
FormField
instances is implementation-dependant.Collection getFieldNames()
Collection
of the names of all of the fields held by this form.