|
iText 9.5.0 API
|
Processes XFA forms. More...
Public Member Functions |
|
| XfaForm () | |
| An empty constructor to build on. More... |
|
| XfaForm (Stream inputStream) | |
| Creates an XFA form by the stream containing all xml information More... |
|
| XfaForm (XDocument domDocument) | |
| Creates an XFA form by the Document containing all xml information More... |
|
| XfaForm (PdfDictionary acroFormDictionary) | |
| A constructor from a iText.Kernel.Pdf.PdfDictionary . It is assumed, but not necessary for correct initialization, that the dictionary is actually a iText.Forms.PdfAcroForm . An entry in the dictionary with the More... |
|
| XfaForm (PdfDocument pdfDocument) | |
| A constructor from a More... |
|
| virtual void | Write (PdfDocument document) |
| Write the XfaForm to the provided PdfDocument. More... |
|
| virtual void | Write (PdfAcroForm acroForm) |
| Write the XfaForm to the provided PdfDocument. More... |
|
| virtual void | SetXfaFieldValue (String name, String value) |
| Changes a field value in the XFA form. More... |
|
| virtual String | GetXfaFieldValue (String name) |
| Gets the xfa field value. More... |
|
| virtual bool | IsXfaPresent () |
| Returns More... |
|
| virtual String | FindFieldName (String name) |
| Finds the complete field name from a partial name. More... |
|
| virtual String | FindDatasetsName (String name) |
| Finds the complete SOM name contained in the datasets section from a possibly partial name. More... |
|
| virtual XNode | FindDatasetsNode (String name) |
| Finds the More... |
|
| virtual String | GetNodeTextByPath (String path) |
| Gets all the text contained in the child nodes of the node under the provided path. More... |
|
| virtual void | SetNodeText (XNode n, String text) |
| Sets the text of this node. More... |
|
| virtual XDocument | GetDomDocument () |
| Gets the top level DOM document. More... |
|
| virtual void | SetDomDocument (XDocument domDocument) |
| Sets the top DOM document. More... |
|
| virtual XElement | GetDatasetsNode () |
| Gets the More... |
|
| virtual void | FillXfaForm (FileInfo file) |
| Replaces the XFA data under datasets/data. More... |
|
| virtual void | FillXfaForm (FileInfo file, bool readOnly) |
| Replaces the XFA data under datasets/data. More... |
|
| virtual void | FillXfaForm (Stream @is) |
| Replaces the XFA data under datasets/data. More... |
|
| virtual void | FillXfaForm (Stream @is, bool readOnly) |
| Replaces the XFA data under datasets/data. More... |
|
| virtual void | FillXfaForm (XmlReader @is) |
| Replaces the XFA data under datasets/data. More... |
|
| virtual void | FillXfaForm (XmlReader @is, bool readOnly) |
| Replaces the XFA data under datasets/data. More... |
|
| virtual void | FillXfaForm (XNode node) |
| Replaces the XFA data under datasets/data. More... |
|
| virtual void | FillXfaForm (XNode node, bool readOnly) |
| Replaces the XFA data under datasets/data. More... |
|
Static Public Member Functions |
|
| static void | SetXfaForm (XfaForm form, PdfDocument pdfDocument) |
| Sets the XFA key from a byte array. More... |
|
| static void | SetXfaForm (XfaForm form, PdfAcroForm acroForm) |
| Sets the XFA key from a byte array. More... |
|
| static IDictionary< String, XNode > | ExtractXFANodes (XDocument domDocument) |
| Extracts DOM nodes from an XFA document. More... |
|
| static String | GetNodeText (XNode n) |
| Gets all the text contained in the child nodes of this node. More... |
|
Static Public Attributes |
|
| const String | XFA_DATA_SCHEMA = "http://www.xfa.org/schema/xfa-data/1.0/" |
| The URI for the XFA Data schema. More... |
|
Processes XFA forms.
|
inline |
An empty constructor to build on.
|
inline |
Creates an XFA form by the stream containing all xml information
| inputStream | The InputStream |
|
inline |
Creates an XFA form by the Document containing all xml information
| domDocument | The document |
|
inline |
A constructor from a iText.Kernel.Pdf.PdfDictionary . It is assumed, but not necessary for correct initialization, that the dictionary is actually a iText.Forms.PdfAcroForm . An entry in the dictionary with the
XFA key must contain correct XFA syntax. If the XFA key is absent, then the constructor essentially does nothing.
| acroFormDictionary | the dictionary object to initialize from |
|
inline |
A constructor from a
PdfDocument.
A constructor from a
|
inlinestatic |
Extracts DOM nodes from an XFA document.
| domDocument | an XFA file as a DOM document |
|
inlinevirtual |
Replaces the XFA data under datasets/data.
Replaces the XFA data under datasets/data. Accepts a file object to fill this object with XFA data. The resulting DOM document may be modified.
| file | the System.IO.FileInfo |
|
inlinevirtual |
Replaces the XFA data under datasets/data.
Replaces the XFA data under datasets/data. Accepts a file object to fill this object with XFA data.
| file | the System.IO.FileInfo |
| readOnly | whether or not the resulting DOM document may be modified |
|
inlinevirtual |
Replaces the XFA data under datasets/data.
Replaces the XFA data under datasets/data. Accepts an System.IO.Stream to fill this object with XFA data. The resulting DOM document may be modified.
| is | the System.IO.Stream |
|
inlinevirtual |
Replaces the XFA data under datasets/data.
Replaces the XFA data under datasets/data. Accepts an System.IO.Stream to fill this object with XFA data.
| is | the System.IO.Stream |
| readOnly | whether or not the resulting DOM document may be modified |
|
inlinevirtual |
Replaces the XFA data under datasets/data.
Replaces the XFA data under datasets/data. Accepts an XML reader to fill this object with XFA data. The resulting DOM document may be modified.
| is | the XML reader |
|
inlinevirtual |
Replaces the XFA data under datasets/data.
Replaces the XFA data under datasets/data. Accepts an XML reader to fill this object with XFA data.
| is | the XML reader |
| readOnly | whether or not the resulting DOM document may be modified |
|
inlinevirtual |
Replaces the XFA data under datasets/data.
| node | the input System.Xml.Linq.XNode |
|
inlinevirtual |
Replaces the XFA data under datasets/data.
| node | the input System.Xml.Linq.XNode |
| readOnly | whether or not the resulting DOM document may be modified |
|
inlinevirtual |
Finds the complete SOM name contained in the datasets section from a possibly partial name.
| name | the complete or partial name |
|
inlinevirtual |
Finds the
Node contained in the datasets section from a possibly partial name.
| name | the complete or partial name |
null if not found
|
inlinevirtual |
Finds the complete field name from a partial name.
| name | the complete or partial name |
|
inlinevirtual |
Gets the
Node that corresponds to the datasets part.
|
inlinevirtual |
Gets the top level DOM document.
|
inlinestatic |
Gets all the text contained in the child nodes of this node.
| n | the
Node
|
|
inlinevirtual |
Gets all the text contained in the child nodes of the node under the provided path.
| path | path to the node to extract text in the format "some.path.to.node" |
null if node or text wasn't found
|
inlinevirtual |
Gets the xfa field value.
| name | the fully qualified field name |
|
inlinevirtual |
Returns
true if it is a XFA form.
|
inlinevirtual |
Sets the top DOM document.
| domDocument | the top DOM document |
|
inlinevirtual |
Sets the text of this node.
Sets the text of this node. All the child's node are deleted and a new child text node is created.
| n | the
Node to add the text to
"text">the text to add
|
|
inlinevirtual |
Changes a field value in the XFA form.
| name | the name of the field to be changed |
| value | the new value |
|
inlinestatic |
Sets the XFA key from a byte array.
Sets the XFA key from a byte array. The old XFA is erased.
| form | the data |
| acroForm | an AcroForm instance |
|
inlinestatic |
Sets the XFA key from a byte array.
Sets the XFA key from a byte array. The old XFA is erased.
| form | the data |
| pdfDocument | pdfDocument |
|
inlinevirtual |
Write the XfaForm to the provided PdfDocument.
| acroForm | the PdfAcroForm to write the XFA Form to |
|
inlinevirtual |
|
static |
The URI for the XFA Data schema.