Saving word document into text file


#1

I want to save the word document as a text file. I tried using the saveformat.formattext. But the paragraph break, line break and hyperlinks are not working, how can I resolve it.


#2

Hi,

Thank you for considering Aspose.

Surely, plain text files do not provide any formatting. You probably could use IDocumentVisitor and write text into a text file accordingly to the formatting specified in the source document. Please also see this topic:

http://www.aspose.com/Wiki/default.aspx/Aspose.Word/ExtractingDocumentElements.html