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 interactiveAcroFormembedded in some PDF documents.Conceptually,
Forms are collections of key/value pairs, represented byFormFields.- Version:
- ©2004-2025 Snowtide
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DocumentgetDocument()Returns the sourceDocumentfrom which thisFormwas extracted.TgetField(String fieldName)Returns the field held by this form with the given name.Collection<String>getFieldNames()Returns aCollectionof 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 toFormFieldinstances is implementation-dependant.
-
getFieldNames
Collection<String> getFieldNames()
Returns aCollectionof the names of all of the fields held by this form.
-
-