|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.pdf.cos.COSBasedObject
de.intarsys.pdf.pd.PDObject
de.intarsys.pdf.pd.PDAcroFormNode
de.intarsys.pdf.pd.PDAcroForm
public class PDAcroForm
The logical AcroForm hosted in a PDF document.
Nested Class Summary | |
---|---|
static class |
PDAcroForm.MetaClass
The meta class implementation |
Field Summary | |
---|---|
static COSName |
DK_CO
The name of the CalculationOrder entry. |
static COSName |
DK_Fields
The name of the fields entry. |
static COSName |
DK_NeedAppearances
The name of the NeedApperances entry. |
static COSName |
DK_SigFlags
The name of the SignatureFlags entry. |
static COSName |
DK_XFA
The name of the XFAResources entry. |
static PDAcroForm.MetaClass |
META
The meta class instance |
Fields inherited from class de.intarsys.pdf.pd.PDAcroFormNode |
---|
DK_DA, DK_DR, DK_Encoding, DK_Font, DK_Q |
Fields inherited from class de.intarsys.pdf.pd.PDObject |
---|
DK_Subtype, DK_Type |
Method Summary | |
---|---|
void |
addField(PDAcroFormField field)
Insert a PDAcroFormField in the receiver node. |
COSObject |
cosGetXfa()
The /XFA entry of this. |
PDAcroForm |
getAcroForm()
The PDAcroForm for this node. |
List |
getCalculationOrder()
A collection containing the PDAcroFormField objects in their calculation order or null if no /C events are defined. |
PDResources |
getDefaultResources()
The default resource dictionary. |
List |
getFields()
A list of all direct PDAcroFormField instances associated with
this object. |
List |
getGenericChildren()
Get a collection of PDObject children if the receiver is a node
in a hierarchical structure (like page nodes or form fields). |
boolean |
getNeedAppearances()
true if /NeedAppearances is set for this form. |
AcroFormSigFlags |
getSigFlags()
The flags associated with an AcroForm. |
void |
invalidateCaches()
Invalidate all local caches as the base object may have changed. |
boolean |
isSignatureExists()
true if this form has a signature field. |
boolean |
isSigned()
true if this form has a signed signature field. |
boolean |
removeField(PDAcroFormField field)
Remove a PDAcroFormField from the receiver. |
void |
setDefaultResources(PDResources newResources)
Assign the default resource dictionary to be used with the form. |
void |
setGenericParent(PDObject parent)
Set the parent of the receiver if it is a node in a hierarchical structure (like page nodes or form fields). |
void |
setNeedAppearances(boolean newNeedAppearances)
Set the /NeedAppearances field for the form. |
String |
toString()
|
Methods inherited from class de.intarsys.pdf.pd.PDObject |
---|
cosGetFieldDescendant, cosGetFieldInheritable, cosGetFieldInherited, cosGetSubtype, cosGetType, cosRemoveFieldInheritable, cosSetFieldInheritable, cosSetSubtype, cosSetType, getDoc, getGenericParent |
Methods inherited from class de.intarsys.pdf.cos.COSBasedObject |
---|
changed, cosGetArray, cosGetDict, cosGetDoc, cosGetField, cosGetObject, cosGetStream, cosHasField, cosRemoveField, cosSetField, getAttribute, getFieldBoolean, getFieldDate, getFieldFixed, getFieldFixedArray, getFieldInt, getFieldMLString, getFieldString, removeAttribute, setAttribute, setFieldBoolean, setFieldFixed, setFieldInt, setFieldMLString, setFieldName, setFieldObject, setFieldString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final COSName DK_Fields
public static final COSName DK_NeedAppearances
public static final COSName DK_SigFlags
For a list of possible flags:
AcroFormSigFlags
public static final COSName DK_CO
public static final COSName DK_XFA
public static final PDAcroForm.MetaClass META
Method Detail |
---|
public PDAcroForm getAcroForm()
PDAcroFormNode
PDAcroForm
for this node.
getAcroForm
in class PDAcroFormNode
PDAcroForm
for this node.public void setDefaultResources(PDResources newResources)
newResources
- The new default resource dictionary.public PDResources getDefaultResources()
With 1.5 this is no longer supported as an entry in field dictionaries, only in the form itself.
public List getCalculationOrder()
public List getFields()
PDAcroFormField
instances associated with
this object.
PDAcroFormField
instances associated
with this object.public List getGenericChildren()
PDObject
PDObject
children if the receiver is a node
in a hierarchical structure (like page nodes or form fields).
This enables the generic implementation of inherited field values and so on.
A concrete PDObject implementation supporting inheritance should implement this method.
getGenericChildren
in class PDObject
PDObject
children if the receiver is a
node in a hierarchical structure .public void setGenericParent(PDObject parent)
PDObject
A concrete PDObject implementation supporting inheritance should implement this method.
setGenericParent
in class PDObject
parent
- The new parent object.public void setNeedAppearances(boolean newNeedAppearances)
true
, a
viewer application is required to re-create the visual appearances for
the fields.
newNeedAppearances
- The new state for /NewwdAppearancespublic boolean getNeedAppearances()
true
if /NeedAppearances is set for this form.
true
if /NeedAppearances is set for this form.public AcroFormSigFlags getSigFlags()
public void addField(PDAcroFormField field)
PDAcroFormNode
PDAcroFormField
in the receiver node.
addField
in class PDAcroFormNode
field
- The field to be inserted.public boolean removeField(PDAcroFormField field)
PDAcroFormNode
PDAcroFormField
from the receiver.
removeField
in class PDAcroFormNode
field
- The field to remove.
true
if field
was removed.public String toString()
toString
in class PDObject
public void invalidateCaches()
COSBasedObject
invalidateCaches
in class PDAcroFormNode
public COSObject cosGetXfa()
public boolean isSigned()
true
if this form has a signed signature field.
true
if this form has a signed signature field.public boolean isSignatureExists()
true
if this form has a signature field. This is NOT the
same as the flag in the SigFlags entry but may be used to compute this
entry.
true
if this form has a signature field.
|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |