We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose.word to convert document into text

My customer wants to know if he can convert word or rtf document into text by using aspose.word component. For example we are getting 1000-1500 resumes of type word, rtf and pdf in a day. Right now our team is manually converting the document into text by using “Save as” from the file menu and uploading the content into the database for keyword searching. To do this task we are loosing long hours and manpower to achieve search result and recruiters are able to get the search results next day due to delay in uploading at the right time.
It would be great if there could be function in aspose.word to convert document into text with header/footer and text box correctly converted to text. We can save a big time and manpower and can convert into text without any delay and dependency.
Hoping to get the solution for the above problem at the earliest.
Regards

Irfan.

Hi
Thanks for your inquiry. Yes, of course you can convert Word documents to plain text using Aspose.Words. Please see the following link to learn how you can achieve this.
https://docs.aspose.com/words/net/how-to-extract-selected-content-between-nodes-in-a-document/
Best regards.

Hi buddies, one question related this topic,
is it possible to convert HTML text to plain text using aspose word?
Best Regards

Hi
Thanks for your request. I think you can try using the following code to achieve this.

string html = "<b>this is html string</b>";
// Create Document and DocumentBuilder
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder();
// Insert html into the document
builder.InsertHtml(html);
// Get text from the document
string text = doc.ToTxt();

Hope this helps.
Best regards.