java.lang.Object
com.lowagie.text.pdf.XfaForm
Deprecated.
Processes XFA forms.
- Author:
- Paulo Soares (psoares@consiste.pt)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.A class to process "classic" fields.static classDeprecated.A structure to store each part of a SOM name and link it to the next part beginning from the lower hierarchy.static classDeprecated.Another stack implementation.static classDeprecated.A class for some basic SOM processing.static classDeprecated.Processes the datasets section in the XFA form.static classDeprecated.Processes the template section in the XFA form. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfillXfaForm(File file) Deprecated.voidDeprecated.voidfillXfaForm(Node node) Deprecated.Replaces the data under datasets/data.voidDeprecated.findDatasetsName(String name) Deprecated.Finds the complete SOM name contained in the datasets section from a possibly partial name.findDatasetsNode(String name) Deprecated.Finds theNodecontained in the datasets section from a possibly partial name.findFieldName(String name, AcroFields af) Deprecated.Finds the complete field name contained in the "classic" forms from a partial name.Deprecated.Gets the class that contains the "classic" fields processing.Deprecated.Gets theNodethat corresponds to the datasets part.Deprecated.Gets the class that contains the datasets processing section of the XFA.Deprecated.Gets the top level DOM document.static StringgetNodeText(Node n) Deprecated.Gets all the text contained in the child nodes of this node.Deprecated.Gets thePdfReaderused by this instance.Deprecated.Gets the class that contains the template processing section of the XFA.static PdfObjectgetXfaObject(PdfReader reader) Deprecated.Return the XFA Object, could be an array, could be a Stream.booleanDeprecated.Checks if this XFA form was changed.booleanDeprecated.Returnstrueif it is a XFA form.static byte[]serializeDoc(Node n) Deprecated.Serializes a XML document to a byte array.voidsetAcroFieldsSom(XfaForm.AcroFieldsSearch acroFieldsSom) Deprecated.Sets the class that contains the "classic" fields processing.voidsetChanged(boolean changed) Deprecated.Sets the changed status of this XFA instance.voidsetDatasetsSom(XfaForm.Xml2SomDatasets datasetsSom) Deprecated.Sets the class that contains the datasets processing section of the XFA.voidsetDomDocument(Document domDocument) Deprecated.Sets the top DOM document.voidsetNodeText(Node n, String text) Deprecated.Sets the text of this node.voidDeprecated.Sets thePdfReaderto be used by this instance.voidsetTemplateSom(XfaForm.Xml2SomTemplate templateSom) Deprecated.Sets the class that contains the template processing section of the XFAvoidDeprecated.Sets the XFA key from the instance data.static voidDeprecated.Sets the XFA key from a byte array.voidsetXfaPresent(boolean xfaPresent) Deprecated.Sets the XFA form flag signaling that this is a valid XFA form.
-
Field Details
-
XFA_DATA_SCHEMA
Deprecated.- See Also:
-
-
Constructor Details
-
XfaForm
public XfaForm()Deprecated.An empty constructor to build on. -
XfaForm
Deprecated.A constructor from aPdfReader. It basically does everything from finding the XFA stream to the XML parsing.- Parameters:
reader- the reader- Throws:
IOException- on errorParserConfigurationException- on errorSAXException- on error
-
-
Method Details
-
getXfaObject
Deprecated.Return the XFA Object, could be an array, could be a Stream. Returns null f no XFA Object is present.- Parameters:
reader- a PdfReader instance- Returns:
- the XFA object
- Since:
- 2.1.3
-
setXfa
Deprecated.Sets the XFA key from a byte array. The old XFA is erased.- Parameters:
form- the datareader- the readerwriter- the writer- Throws:
IOException- on error
-
serializeDoc
Deprecated.Serializes a XML document to a byte array.- Parameters:
n- the XML document- Returns:
- the serialized XML document
- Throws:
IOException- on error
-
getNodeText
Deprecated.Gets all the text contained in the child nodes of this node.- Parameters:
n- theNode- Returns:
- the text found or "" if no text was found
-
setXfa
Deprecated.Sets the XFA key from the instance data. The old XFA is erased.- Parameters:
writer- the writer- Throws:
IOException- on error
-
isXfaPresent
public boolean isXfaPresent()Deprecated.Returnstrueif it is a XFA form.- Returns:
trueif it is a XFA form
-
setXfaPresent
public void setXfaPresent(boolean xfaPresent) Deprecated.Sets the XFA form flag signaling that this is a valid XFA form.- Parameters:
xfaPresent- the XFA form flag signaling that this is a valid XFA form
-
getDomDocument
Deprecated.Gets the top level DOM document.- Returns:
- the top level DOM document
-
setDomDocument
Deprecated.Sets the top DOM document.- Parameters:
domDocument- the top DOM document
-
findFieldName
Deprecated.Finds the complete field name contained in the "classic" forms from a partial name.- Parameters:
name- the complete or partial nameaf- the fields- Returns:
- the complete name or
nullif not found
-
findDatasetsName
Deprecated.Finds the complete SOM name contained in the datasets section from a possibly partial name.- Parameters:
name- the complete or partial name- Returns:
- the complete name or
nullif not found
-
findDatasetsNode
Deprecated.Finds theNodecontained in the datasets section from a possibly partial name.- Parameters:
name- the complete or partial name- Returns:
- the
Nodeornullif not found
-
setNodeText
Deprecated.Sets the text of this node. All the child's node are deleted and a new child text node is created.- Parameters:
n- theNodeto add the text totext- the text to add
-
getReader
Deprecated.Gets thePdfReaderused by this instance.- Returns:
- the
PdfReaderused by this instance
-
setReader
Deprecated.Sets thePdfReaderto be used by this instance.- Parameters:
reader- thePdfReaderto be used by this instance
-
isChanged
public boolean isChanged()Deprecated.Checks if this XFA form was changed.- Returns:
trueif this XFA form was changed
-
setChanged
public void setChanged(boolean changed) Deprecated.Sets the changed status of this XFA instance.- Parameters:
changed- the changed status of this XFA instance
-
getTemplateSom
Deprecated.Gets the class that contains the template processing section of the XFA.- Returns:
- the class that contains the template processing section of the XFA
-
setTemplateSom
Deprecated.Sets the class that contains the template processing section of the XFA- Parameters:
templateSom- the class that contains the template processing section of the XFA
-
getDatasetsSom
Deprecated.Gets the class that contains the datasets processing section of the XFA.- Returns:
- the class that contains the datasets processing section of the XFA
-
setDatasetsSom
Deprecated.Sets the class that contains the datasets processing section of the XFA.- Parameters:
datasetsSom- the class that contains the datasets processing section of the XFA
-
getAcroFieldsSom
Deprecated.Gets the class that contains the "classic" fields processing.- Returns:
- the class that contains the "classic" fields processing
-
setAcroFieldsSom
Deprecated.Sets the class that contains the "classic" fields processing.- Parameters:
acroFieldsSom- the class that contains the "classic" fields processing
-
getDatasetsNode
Deprecated.Gets theNodethat corresponds to the datasets part.- Returns:
- the
Nodethat corresponds to the datasets part
-
fillXfaForm
Deprecated. -
fillXfaForm
public void fillXfaForm(InputStream is) throws ParserConfigurationException, SAXException, IOException Deprecated. -
fillXfaForm
public void fillXfaForm(InputSource is) throws ParserConfigurationException, SAXException, IOException Deprecated. -
fillXfaForm
Deprecated.Replaces the data under datasets/data.- Parameters:
node- node to fill data under- Since:
- iText 5.0.0
-