XfaForm
Overview
XfaForm is a class in Aspose.Pdf FOSS for Java.
Represents an XFA (XML Forms Architecture) form embedded in a PDF document.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
template | org.w3c.dom.Document | Read | Returns the XFA template packet as a DOM Document. |
datasets | org.w3c.dom.Document | Read | Returns the XFA datasets packet as a DOM Document. |
config | org.w3c.dom.Document | Read | Returns the XFA config packet as a DOM Document. |
xDP | org.w3c.dom.Document | Read | Returns the assembled XDP document containing all packets. |
form | org.w3c.dom.Document | Read | Returns the XFA form packet as a DOM Document (runtime form DOM). |
namespaceManager | XfaNamespaceContext | Read | Returns the namespace context for XPath queries over XFA XML. |
fieldNames | String[] | Read | Returns all field names from the XFA template. |
Methods
| Signature | Description |
|---|---|
XfaForm(acroFormDict: COSDictionary) | Creates an XfaForm from the AcroForm dictionary. |
getTemplate() → org.w3c.dom.Document | Returns the XFA template packet as a DOM Document. |
getDatasets() → org.w3c.dom.Document | Returns the XFA datasets packet as a DOM Document. |
getConfig() → org.w3c.dom.Document | Returns the XFA config packet as a DOM Document. |
getXDP() → org.w3c.dom.Document | Returns the assembled XDP document containing all packets. |
getForm() → org.w3c.dom.Document | Returns the XFA form packet as a DOM Document (runtime form DOM). |
getNamespaceManager() → XfaNamespaceContext | Returns the namespace context for XPath queries over XFA XML. |
get(fieldName: String) → String | Gets the value of an XFA field by its SOM-like dotted path. |
set(fieldName: String, value: String) | Sets the value of an XFA field by its SOM-like dotted path. |
getFieldNames() → String[] | Returns all field names from the XFA template. |
getFieldTemplate(fieldName: String) → org.w3c.dom.Node | Returns the template node for a specific field. |
setFieldImage(fieldName: String, imageStream: InputStream) | Sets an image value for an XFA image field. |