|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cete.dynamicpdf.Resource com.cete.dynamicpdf.forms.Form
public class Form
Class provides the base class, representing an PDF form.
Licensing:
Reading the values or properties of a field is a
DynamicPDF Merger Standard Edition feature (for modifying field values see below).
One of the following licenses is required for non-evaluation usage:
Modiying the values of the fields (i.e. form filling) is a Professional Edition Feature. One of the following licenses is required for non-evaluation usage:
Method Summary | |
---|---|
void |
addFormFieldsAddedEventListener(FormFieldsAddedEventListener formFieldsAddedEventListener)
Adds the formFieldsAddedEventListener for the form event. |
void |
draw(DocumentWriter writer)
Draws the form to the given DocumentWriter object. |
protected void |
drawDictionary(DocumentWriter writer)
Draws the form's dictionary entries to the given DocumentWriter object. |
Align |
getAlign()
Gets the document�s wide alignment for variable text fields. |
FormCalculationOrder |
getCalculationOrder()
Gets the form's calculation order. |
FormFieldAlign |
getDefaultAlign()
Gets the default alignment for the form. |
java.lang.String |
getDefaultAppearance()
Gets the default appearance for the form. |
DeviceColor |
getDefaultColor()
Gets the defualt color for all the variable text fields. |
Font |
getDefaultFont()
Gets the font default for all the variable text fields. |
float |
getDefaultFontSize()
Gets the default font size for all the variable text fields. |
Resource |
getDefaultResources()
Gets the default resource for the form. |
boolean |
getExcludeXfaDataIfValuesChanged()
Gets a value indicating to exclude the XFA if the form field value is changed. |
FormFieldList |
getFields()
Gets a collection of fields for the form. |
FormOutput |
getOutput()
Gets the output options for the form. |
int |
getRequiredLicenseLevel()
Gets a value indicating the required license level for the form. |
FormFieldOutput |
getSignatureFieldsOutput()
Gets output options for the signature fields. |
SignatureFlags |
getSignatureFlags()
Gets the signature flags for the form. |
Font |
getSubstituteFont()
Gets the Font to be used as a substitute font for form fields. |
TextFieldList |
getTextFields()
Returns a collection of text form fields. |
boolean |
isReadOnly()
Gets a value indicating if the form is read only. |
boolean |
needsAppearances()
Gets a value indicating if the form needs appearance streams. |
void |
removeFormFieldsAddedEventListener(FormFieldsAddedEventListener formFieldsAddedEventListener)
Removes the formFieldsAddedEventListener for the form event. |
void |
requireLicense(int requiredLicenseLevel)
Sets the required license level for the form. |
void |
setAlign(Align align)
Sets the document�s wide alignment for variable text fields. |
void |
setDefaultAlign(FormFieldAlign value)
Sets the default alignment for the form. |
void |
setDefaultAppearance(java.lang.String value)
Sets the default appearance for the form. |
void |
setDefaultResources(Resource resource)
Sets the default resource for the form. |
void |
setExcludeXfaDataIfValuesChanged(boolean value)
Sets a value indicating to exclude the XFA if the form field value is changed. |
void |
setNeedsAppearances(boolean value)
Sets a value indicating if the form needs appearance streams. |
void |
setOutput(FormOutput value)
Sets the output options for the form. |
void |
setReadOnly(boolean value)
Sets a value indicating if the form is read only. |
void |
setSignatureFieldsOutput(FormFieldOutput value)
Sets output options for the signature fields. |
void |
setSignatureFlags(SignatureFlags value)
Sets the signature flags for the form. |
void |
setSubstituteFont(Font value)
Sets the Font to be used as a substitute font for form fields. |
Methods inherited from class com.cete.dynamicpdf.Resource |
---|
getRequiredPdfObjects, getResourceType, getUid, newUid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Resource getDefaultResources()
Resource
object representing the default resource
for the form.Resource
public void setDefaultResources(Resource resource)
resource
- specifing the default resource for the form.public java.lang.String getDefaultAppearance()
public void setDefaultAppearance(java.lang.String value)
value
- specifing the default appearance for the form.public Font getDefaultFont()
public float getDefaultFontSize()
public DeviceColor getDefaultColor()
DeviceColor
object representing the defualt color
for all the variable text fields.public Align getAlign()
Align
object representing the document�s wide
alignment for variable text fields.Align
public void setAlign(Align align)
align
- specifying the document�s wide alignment for variable text
fields.public FormFieldList getFields()
FormFieldList
object representing a collection of
fields for the form.public boolean isReadOnly()
public void setReadOnly(boolean value)
value
- A boolean value specifing if the form is read only.public FormCalculationOrder getCalculationOrder()
public FormFieldAlign getDefaultAlign()
public void setDefaultAlign(FormFieldAlign value)
value
- specifing the default alignment for the form.public SignatureFlags getSignatureFlags()
public void setSignatureFlags(SignatureFlags value)
value
- the signature flags for the form.public boolean needsAppearances()
public void setNeedsAppearances(boolean value)
value
- indicating if the form needs appearance streams.public boolean getExcludeXfaDataIfValuesChanged()
public void setExcludeXfaDataIfValuesChanged(boolean value)
public int getRequiredLicenseLevel()
public void draw(DocumentWriter writer)
DocumentWriter
object.
draw
in class Resource
writer
- DocumentWriter
object to receive the form's output.DocumentWriter
public TextFieldList getTextFields()
TextFieldList
object containing the visible form fields.TextFieldList
public void requireLicense(int requiredLicenseLevel)
requiredLicenseLevel
- The license level required.public void addFormFieldsAddedEventListener(FormFieldsAddedEventListener formFieldsAddedEventListener)
formFieldsAddedEventListener
- specifing the formFieldsAddedEventListener
for the form event.FormFieldsAddedEventListener
public void removeFormFieldsAddedEventListener(FormFieldsAddedEventListener formFieldsAddedEventListener)
formFieldsAddedEventListener
- specifing the formFieldsAddedEventListener
for the form event.FormFieldsAddedEventListener
protected void drawDictionary(DocumentWriter writer)
DocumentWriter
object.
writer
- DocumentWriter
object to receive the output.DocumentWriter
public Font getSubstituteFont()
public void setSubstituteFont(Font value)
public FormOutput getOutput()
public void setOutput(FormOutput value)
value
- the output options for the form.public FormFieldOutput getSignatureFieldsOutput()
public void setSignatureFieldsOutput(FormFieldOutput value)
value
- The output options for the signature fields.
|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |