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

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.

méthodes

SignatureDescription
XfaForm(acroFormDict: PdfDictionary)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.

Voir aussi

  • Aspose.PDF pour Java — API d’entreprise
 Français