Class WordToHtmlConverter

    • Constructor Detail

      • WordToHtmlConverter

        public WordToHtmlConverter​(org.w3c.dom.Document document)
        Creates new instance of WordToHtmlConverter. Can be used for output several HWPFDocuments into single HTML document.
        Parameters:
        document - XML DOM Document used as HTML document
      • WordToHtmlConverter

        public WordToHtmlConverter​(HtmlDocumentFacade htmlDocumentFacade)
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException,
                                javax.xml.parsers.ParserConfigurationException,
                                javax.xml.transform.TransformerException
        Java main() interface to interact with WordToHtmlConverter

        Usage: WordToHtmlConverter infile outfile

        Where infile is an input .doc file ( Word 95-2007) which will be rendered as HTML into outfile

        Throws:
        java.io.IOException
        javax.xml.parsers.ParserConfigurationException
        javax.xml.transform.TransformerException