Package com.snowtide.pdf.forms
Interface Form<T extends FormField>
-
- All Superinterfaces:
Iterable<T>
- All Known Subinterfaces:
AcroForm
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 interactiveAcroForm
embedded in some PDF documents.Conceptually,
Form
s are collections of key/value pairs, represented byFormField
s.- Version:
- ©2004-2024 Snowtide
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Document
getDocument()
Returns the sourceDocument
from which thisForm
was extracted.T
getField(String fieldName)
Returns the field held by this form with the given name.Collection<String>
getFieldNames()
Returns aCollection
of the names of all of the fields held by this form.Iterator<T>
iterator()
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getField
T getField(String fieldName)
Returns the field held by this form with the given name. The specific way in which field names are mapped toFormField
instances is implementation-dependant.
-
getFieldNames
Collection<String> getFieldNames()
Returns aCollection
of the names of all of the fields held by this form.
-
-