com.lowagie.text.pdf
public class XfaForm extends Object
| Nested Class Summary | |
|---|---|
| static class | XfaForm.AcroFieldsSearch
A class to process "classic" fields. |
| static class | XfaForm.InverseStore
A structure to store each part of a SOM name and link it to the next part
beginning from the lower hierarchy. |
| static class | XfaForm.Stack2
Another stack implementation. |
| static class | XfaForm.Xml2Som
A class for some basic SOM processing. |
| static class | XfaForm.Xml2SomDatasets
Processes the datasets section in the XFA form. |
| static class | XfaForm.Xml2SomTemplate
Processes the template section in the XFA form. |
| Field Summary | |
|---|---|
| XfaForm.AcroFieldsSearch | acroFieldsSom |
| boolean | changed |
| Node | datasetsNode |
| XfaForm.Xml2SomDatasets | datasetsSom |
| Document | domDocument |
| PdfReader | reader |
| Node | templateNode |
| XfaForm.Xml2SomTemplate | templateSom |
| boolean | xfaPresent |
| static String | XFA_DATA_SCHEMA |
| Constructor Summary | |
|---|---|
| XfaForm()
An empty constructor to build on. | |
| XfaForm(PdfReader reader)
A constructor from a PdfReader. | |
| Method Summary | |
|---|---|
| String | findDatasetsName(String name)
Finds the complete SOM name contained in the datasets section from a
possibly partial name. |
| Node | findDatasetsNode(String name)
Finds the Node contained in the datasets section from a
possibly partial name. |
| String | findFieldName(String name, AcroFields af)
Finds the complete field name contained in the "classic" forms from a partial
name. |
| XfaForm.AcroFieldsSearch | getAcroFieldsSom()
Gets the class that contains the "classic" fields processing. |
| Node | getDatasetsNode()
Gets the Node that corresponds to the datasets part. |
| XfaForm.Xml2SomDatasets | getDatasetsSom()
Gets the class that contains the datasets processing section of the XFA. |
| Document | getDomDocument()
Gets the top level DOM document. |
| static String | getNodeText(Node n)
Gets all the text contained in the child nodes of this node. |
| static String | getNodeText(Node n, String name) |
| PdfReader | getReader()
Gets the PdfReader used by this instance. |
| XfaForm.Xml2SomTemplate | getTemplateSom()
Gets the class that contains the template processing section of the XFA. |
| static PdfObject | getXfaObject(PdfReader reader)
Return the XFA Object, could be an array, could be a Stream.
|
| boolean | isChanged()
Checks if this XFA form was changed. |
| boolean | isXfaPresent()
Returns true if it is a XFA form. |
| static byte[] | serializeDoc(Node n)
Serializes a XML document to a byte array. |
| void | setAcroFieldsSom(XfaForm.AcroFieldsSearch acroFieldsSom)
Sets the class that contains the "classic" fields processing. |
| void | setChanged(boolean changed)
Sets the changed status of this XFA instance. |
| void | setDatasetsSom(XfaForm.Xml2SomDatasets datasetsSom)
Sets the class that contains the datasets processing section of the XFA. |
| void | setDomDocument(Document domDocument)
Sets the top DOM document. |
| void | setNodeText(Node n, String text)
Sets the text of this node. |
| void | setReader(PdfReader reader)
Sets the PdfReader to be used by this instance. |
| void | setTemplateSom(XfaForm.Xml2SomTemplate templateSom)
Sets the class that contains the template processing section of the XFA |
| static void | setXfa(XfaForm form, PdfReader reader, PdfWriter writer)
Sets the XFA key from a byte array. |
| void | setXfa(PdfWriter writer)
Sets the XFA key from the instance data. |
| void | setXfaPresent(boolean xfaPresent)
Sets the XFA form flag signaling that this is a valid XFA form. |
PdfReader. It basically does everything
from finding the XFA stream to the XML parsing.Parameters: reader the reader
Throws: java.io.IOException on error javax.xml.parsers.ParserConfigurationException on error org.xml.sax.SAXException on error
Parameters: name the complete or partial name
Returns: the complete name or null if not found
Node contained in the datasets section from a
possibly partial name.Parameters: name the complete or partial name
Returns: the Node or null if not found
Parameters: name the complete or partial name af the fields
Returns: the complete name or null if not found
Returns: the class that contains the "classic" fields processing
Node that corresponds to the datasets part.Returns: the Node that corresponds to the datasets part
Returns: the class that contains the datasets processing section of the XFA
Returns: the top level DOM document
Parameters: n the Node
Returns: the text found or "" if no text was found
PdfReader used by this instance.Returns: the PdfReader used by this instance
Returns: the class that contains the template processing section of the XFA
Parameters: reader a PdfReader instance
Returns: the XFA object
Since: 2.1.3
Returns: true if this XFA form was changed
true if it is a XFA form.Returns: true if it is a XFA form
Parameters: n the XML document
Returns: the serialized XML document
Throws: java.io.IOException on error
Parameters: acroFieldsSom the class that contains the "classic" fields processing
Parameters: changed the changed status of this XFA instance
Parameters: datasetsSom the class that contains the datasets processing section of the XFA
Parameters: domDocument the top DOM document
Parameters: n the Node to add the text to text the text to add
PdfReader to be used by this instance.Parameters: reader the PdfReader to be used by this instance
Parameters: templateSom the class that contains the template processing section of the XFA
Parameters: form the data reader the reader writer the writer
Throws: java.io.IOException on error
Parameters: writer the writer
Throws: java.io.IOException on error
Parameters: xfaPresent the XFA form flag signaling that this is a valid XFA form