Aspose.Words

Retrieving Plain Text

Use the Range.Text property to retrieve plain, unformatted text of the range.

Example RangesGetText

Shows how to get plain, unformatted text of a range.

[Java]

 

Document doc = new Document(getMyDir() + "Document.doc");

String text = doc.getRange().getText();