|
||||||||||||||||||||
TUTORIALS Template Tutorial:
|
||||||||||||||||||||
| Name | Preview |
| TextField | |
| CheckBoxField | |
| RadioButtonField | |
| ComboBoxField | |
| ListBoxField | |
| ButtonField | |
| SignatureField | ![]() |
The implementation of form fields in the API is presented in the image below.
As with HTML form fields, PDF form fields have two main properties - as follows:
Name Apart from special situations, each form field is uniqualy identified by its name in a PDF document. Value The current value of a form field.
Accessing existing form fields via the API will always be done via the template module - as follows:
// Load the template module:
TemplateModule template = doc.getTemplateModule();
// Recover the form field named "Text":
AbstractField myField= template.getField("Text");Upon modification of the form fields' values or attributes (see How to fill form fields), the API will update the internal structure of the form fields and, depending on the appearance generation setup (see Appearance generation), will also generate a visual representation of the new form field state.
| © 2000-2007 Crionics Inc. |