|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A Form implementation that represents the
contents of an interactive PDF form,
available via PDFTextStream.getFormData().
All FormField elements contained by an
AcroForm shall also implement the AcroFormField
interface.
Note that field names are mapped to AcroFormField
instances using each AcroFormField's
fully-qualified name. This is to ensure
that one and only one AcroFormField is mapped to
a particular field name, as provided for by the PDF specification.
Text, checkbox, radio button group, and choice fields may be updated. After updating such fields,
simply call writeUpdatedDocument(File) or writeUpdatedDocument(OutputStream)
as appropriate to write out an updated copy of the source PDF document.
NOTE: If PDFTextStream is not fully licensed, then the values of approximately half of all
FormField objects will be slightly modified (upon both retrieval and updating).
| Method Summary | |
FormField |
getField(java.lang.String fullName)
Returns the AcroFormField that has the given field name, as provided by the
AcroFormField.getFullName() function. |
java.util.Enumeration |
getFieldNames()
Returns an Enumeration of the full field names (as provided by AcroFormField.getFullName())
of all of the form fields held by this form. |
boolean |
writeUpdatedDocument(java.io.File dest)
Identical functionality to writeUpdatedDocument(OutputStream), except
the PDF document data is written to the path specified by the given File object. |
boolean |
writeUpdatedDocument(java.io.OutputStream dest)
If any field values contained in this form have been changed, then this function writes a copy of the PDF document from which this form was read to the given OutputStream, and appends the updated form field values. |
| Methods inherited from interface com.snowtide.pdf.forms.Form |
iterator |
| Method Detail |
public FormField getField(java.lang.String fullName)
AcroFormField that has the given field name, as provided by the
AcroFormField.getFullName() function.
getField in interface Formpublic java.util.Enumeration getFieldNames()
AcroFormField.getFullName())
of all of the form fields held by this form. These names may be used as parameters into the
getField(String) function.
getFieldNames in interface Form
public boolean writeUpdatedDocument(java.io.File dest)
throws java.io.IOException
writeUpdatedDocument(OutputStream), except
the PDF document data is written to the path specified by the given File object.
java.io.IOExceptionwriteUpdatedDocument(OutputStream)
public boolean writeUpdatedDocument(java.io.OutputStream dest)
throws java.io.IOException
dest - - the OutputStream to which the updated PDF document data will be written
java.io.IOException - - if an error occurs while writing the PDF document data
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||