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

NameTypeAccessDescription
templateorg.w3c.dom.DocumentReadReturns the XFA template packet as a DOM Document.
datasetsorg.w3c.dom.DocumentReadReturns the XFA datasets packet as a DOM Document.
configorg.w3c.dom.DocumentReadReturns the XFA config packet as a DOM Document.
xDPorg.w3c.dom.DocumentReadReturns the assembled XDP document containing all packets.
formorg.w3c.dom.DocumentReadReturns the XFA form packet as a DOM Document (runtime form DOM).
namespaceManagerXfaNamespaceContextReadReturns the namespace context for XPath queries over XFA XML.
fieldNamesString[]ReadReturns all field names from the XFA template.

Methods

SignatureDescription
XfaForm(acroFormDict: COSDictionary)Creates an XfaForm from the AcroForm dictionary.
getTemplate()org.w3c.dom.DocumentReturns the XFA template packet as a DOM Document.
getDatasets()org.w3c.dom.DocumentReturns the XFA datasets packet as a DOM Document.
getConfig()org.w3c.dom.DocumentReturns the XFA config packet as a DOM Document.
getXDP()org.w3c.dom.DocumentReturns the assembled XDP document containing all packets.
getForm()org.w3c.dom.DocumentReturns the XFA form packet as a DOM Document (runtime form DOM).
getNamespaceManager()XfaNamespaceContextReturns the namespace context for XPath queries over XFA XML.
get(fieldName: String)StringGets 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.NodeReturns the template node for a specific field.
setFieldImage(fieldName: String, imageStream: InputStream)Sets an image value for an XFA image field.

See Also