public interface Form<T extends FormField>
extends java.lang.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(java.lang.String fieldName)
Returns the field held by this form with the given name.
|
java.util.Collection |
getFieldNames()
Returns a
Collection of the names of all of the fields held by this form. |
java.util.Iterator<T> |
iterator()
Returns an
Iterator over the FormField s held by this form. |
T getField(java.lang.String fieldName)
FormField
instances is implementation-dependant.java.util.Collection getFieldNames()
Collection
of the names of all of the fields held by this form.