Package com.itextpdf.text.pdf
Class XfaXmlLocator
- java.lang.Object
-
- com.itextpdf.text.pdf.XfaXmlLocator
-
- All Implemented Interfaces:
XmlLocator
public class XfaXmlLocator extends java.lang.Object implements XmlLocator
Helps to locate xml stream inside PDF document with Xfa form.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
encoding
private PdfStamper
stamper
private XfaForm
xfaForm
-
Constructor Summary
Constructors Constructor Description XfaXmlLocator(PdfStamper stamper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createXfaForm()
org.w3c.dom.Document
getDocument()
Gets Document to signjava.lang.String
getEncoding()
void
setDocument(org.w3c.dom.Document document)
Save document as single XML stream in AcroForm.void
setEncoding(java.lang.String encoding)
-
-
-
Field Detail
-
stamper
private PdfStamper stamper
-
xfaForm
private XfaForm xfaForm
-
encoding
private java.lang.String encoding
-
-
Constructor Detail
-
XfaXmlLocator
public XfaXmlLocator(PdfStamper stamper) throws DocumentException, java.io.IOException
- Throws:
DocumentException
java.io.IOException
-
-
Method Detail
-
createXfaForm
protected void createXfaForm() throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
- Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
-
getDocument
public org.w3c.dom.Document getDocument()
Gets Document to sign- Specified by:
getDocument
in interfaceXmlLocator
-
setDocument
public void setDocument(org.w3c.dom.Document document) throws java.io.IOException, DocumentException
Save document as single XML stream in AcroForm.- Specified by:
setDocument
in interfaceXmlLocator
- Parameters:
document
- signed document- Throws:
java.io.IOException
DocumentException
-
getEncoding
public java.lang.String getEncoding()
- Specified by:
getEncoding
in interfaceXmlLocator
-
setEncoding
public void setEncoding(java.lang.String encoding)
-
-