PDField(PDAcroForm theAcroForm, COSDictionary field) Creates a COSField from a COSDictionary, expected to be
a correct object definition for a field in PDF.
Creates a COSField from a COSDictionary, expected to be
a correct object definition for a field in PDF.
Parameters: theAcroForm - The form that this field is part of. Parameters: field - the PDF objet to represent as a field.
Find the field type and optionally do a recursive upward search. Sometimes the fieldtype
will be specified on the parent instead of the direct object. This will look at this
object for the field type, if none is specified then it will look to the parent if there
is a parent. If there is no parent and no field type has been found then this
will return null.
The field type or null if none was found.
This will find one of the child elements. The name array are the components
of the name to search down the tree of names. The nameIndex is where to
start in that array. This method is called recursively until it finds
the end point based on the name array.
Parameters: name - An array that picks the path to the field. Parameters: nameIndex - The index into the array. The field at the endpoint or null if none is found. throws: IOException - If there is an error creating the field.
Get the FT entry of the field. This is a read only field and is set depending
on the actual type. The field type is an inheritable attribute. This method will
return only the direct value on this object. Use the findFieldType for an upward
recursive search.
The Field type. See Also:PDField.findFieldType
Returns the fully qualified name of the field, which is a concatenation of
the names of all the parents fields.
the name of the field throws: IOException - If there is an error generating the fully qualified name.
This will get all the kids of this field. The values in the list
will either be PDWidget or PDField. Normally they will be PDWidget objects
unless this is a non-terminal field and they will be child PDField objects.
A list of either PDWidget or PDField objects. throws: IOException - If there is an error retrieving the kids.
This will get the single associated widget that is part of this field. This
occurs when the Widget is embedded in the fields dictionary. Sometimes there
are multiple sub widgets associated with this field, in which case you want to
use getKids(). If the kids entry is specified, then the first entry in that
list will be returned.
The widget that is associated with this field. throws: IOException - If there is an error getting the widget object.
This will import a fdf field from a fdf document.
Parameters: fdfField - The fdf field to import. throws: IOException - If there is an error importing the data for this field.
setValue sets the fields value to a given string.
Parameters: value - the string value throws: IOException - If there is an error creating the appearance stream.