Aspose.Words allows you to export any loaded document to plain text format. It is evident that plain text format does not support most of the complex features found in a Microsoft Word, Open Office or HTML document therefore these features are lost upon conversion to .TXT format. What is converted is an accurate plain text representation of the document.
There are also save options available to control how the text file is generated. The TxtSaveOptions class provides members such as the TxtSaveOptions.ExportHeaderFooters to specify if headers or footers from the document are exported to the text file, as well as the TxtSaveOptions.Encoding property to control the encoding used to write the text.
The TxtSaveOptions.ParagraphBreak property is used to define a custom character to use for ap paragraph break in the output text. You can also use the TxtSaveOptions.PreserveTableLayout property to add white space around tables to attempt to preserve table layout as seen in the source word document.
The same process goes on behind the scenes when the Document.ToTxt method is called. Internally the document is being saved to a stream in memory and the text from the stream is returned. This method doesn’t allow you to specify save options so default options are used.