Class 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 Detail

      • encoding

        private java.lang.String encoding
    • 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 interface XmlLocator
      • 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 interface XmlLocator
        Parameters:
        document - signed document
        Throws:
        java.io.IOException
        DocumentException
      • getEncoding

        public java.lang.String getEncoding()
        Specified by:
        getEncoding in interface XmlLocator
      • setEncoding

        public void setEncoding​(java.lang.String encoding)