Пример #1
0
        public static String GetText(string docFile)
        {
            HWPFDocumentCore wordDocument = AbstractWordUtils
                                            .LoadDoc(docFile);

            return(GetText(wordDocument));
        }
Пример #2
0
        public static XmlDocument Process(string docFile)
        {
            HWPFDocumentCore wordDocument = AbstractWordUtils
                                            .LoadDoc(docFile);
            WordToTextConverter wordToTextConverter = new WordToTextConverter(new XmlDocument());

            wordToTextConverter.ProcessDocument(wordDocument);
            return(wordToTextConverter.Document);
        }
Пример #3
0
        public static String GetText(DirectoryNode root)
        {
            HWPFDocumentCore wordDocument = AbstractWordUtils.LoadDoc(root);

            return(GetText(wordDocument));
        }