XfaForm
Vue de l’ensemble
‘XfaForm’ est une classe dans Aspose.PDF FOSS pour Java.
Il représente un formulaire XFA (XML Forms Architecture) intégré dans un document PDF.
Cette classe fournit 12 méthodes pour travailler avec des objets XfaForm dans les programmes Java. Les méthodologies disponibles comprennent: ‘XfaForm’, ‘get’ , ‘getConfig’, getDatasets', ‘getFieldNames', ’getFerm’, 'GetNamespaceManager', ''getTemplate', ‚getXDP, ‘set’, “setFielImage’. Tous les membres publics sont accessibles à toute application Java après l’installation de l’Aspose.PDF FOSS pour le package Java . Propriétés : ‘config’ ; ‘datasets’; ‘fieldName’, «form’, nomespacemanager’ et plus 1.
Propriétés
| 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. |
méthodes
| Signature | Description |
|---|---|
XfaForm(acroFormDict: PdfDictionary) | 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. |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise