public class InteractiveForm extends Dictionary
| Modifier and Type | Field and Description |
|---|---|
static Name |
CO_KEY
(Required if any fields in the document have additional-actions
dictionaries containing a C entry; PDF 1.3) An array of indirect
references to field dictionaries with calculation actions, defining the
calculation order in which their values will be recalculated when the
value of any field changes (see 12.6.3, “Trigger Events”).
|
static Name |
DA_KEY
(Optional) A document-wide default value for the DA attribute of variable
text fields (see 12.7.3.3, “Variable Text”).
|
static Name |
DR_KEY
(Optional) A resource dictionary (see 7.8.3, “Resource Dictionaries”)
containing default resources (such as fonts, patterns, or colour spaces)
that shall be used by form field appearance streams.
|
static Name |
FIELDS_KEY
(Required) An array of references to the document’s root fields(those with
no ancestors in the field hierarchy).
|
static Name |
NEEDS_APPEARANCES_KEY
(Optional) A flag specifying whether to construct appearance streams and
appearance dictionaries for all widget annotations in the document (see
12.7.3.3, “Variable Text”).
|
static Name |
Q_KEY
(Optional) A document-wide default value for the Q attribute of variable
text fields (see 12.7.3.3, “Variable Text”).
|
static int |
SIG_FLAGS_APPEND_ONLY
If set, the document contains signatures that may be invalidated if the
file is saved (written) in a way that alters its previous contents, as
opposed to an incremental update.
|
static Name |
SIG_FLAGS_KEY
(Optional; PDF 1.3) A set of flags specifying various document-level
characteristics related to signature fields (see Table 219, and 12.7.4.5,
“Signature Fields”).
|
static int |
SIG_FLAGS_SIGNATURES_EXIST
If set, the document contains at least one signature field.
|
entries, FORM_TYPE_KEY, inited, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEY| Constructor and Description |
|---|
InteractiveForm(Library library,
java.util.HashMap entries) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Reference> |
getCalculationOrder()
Gets a list of indirect references to fields that have calculation actions, defining the calculation
order in which values should be calculated when the value of any field changes.
|
java.lang.String |
getDefaultVariableTextDAField()
Gest the default variable text DA entry which can be helpful for rebuilding field data appearance streams.
|
int |
getDefaultVariableTextQField()
Ges the default variable text quadding rule.
|
java.util.ArrayList<java.lang.Object> |
getFields()
Gets the fields associated with this form.
|
Resources |
getResources()
Get the resources associated with the child widgets.
|
void |
init()
Initiate the Dictionary.
|
boolean |
needAppearances()
A flag specifying whether to construct appearance streams and appearance dictionaries for all
widget annotations in the document.
|
boolean |
signatureAppendOnly()
If set, the document contains signatures that may be invalidated if the
file is saved (written) in a way that alters its previous contents, as
opposed to an incremental update
|
boolean |
signatureExists()
A set of flags specifying various document-level characteristics related to signature fields
|
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, getPObjectReference, isDeleted, isNew, setDeleted, setNew, setPObjectReference, toStringpublic static final Name FIELDS_KEY
public static final Name NEEDS_APPEARANCES_KEY
public static final Name SIG_FLAGS_KEY
public static final Name CO_KEY
public static final Name DR_KEY
public static final Name DA_KEY
public static final Name Q_KEY
public static final int SIG_FLAGS_SIGNATURES_EXIST
public static final int SIG_FLAGS_APPEND_ONLY
public InteractiveForm(Library library, java.util.HashMap entries)
public void init()
Dictionaryinit in class Dictionarypublic java.util.ArrayList<java.lang.Object> getFields()
public boolean signatureExists()
public boolean signatureAppendOnly()
public boolean needAppearances()
public java.util.List<Reference> getCalculationOrder()
public Resources getResources()
public java.lang.String getDefaultVariableTextDAField()
public int getDefaultVariableTextQField()