Import Word document into custom object model

I want to be able to create a feature where a user can select an MS Word (.doc or docx) document and import it.

Can you show me how to parse the content and determine if it’s
Heading?
Text?
Image?
TOC?

etc…

Then I should be able to parse the complete document.

Hi Nitin,

Thanks for your inquiry.

Aspose.Words can be used not only for creating Microsoft Word documents by building them dynamically or merging templates with data, but also for parsing documents in order to extract separate document elements such as headers, footers, paragraphs, tables, images, and others. Another possible task is to find all text of a specific formatting or style. Please refer to the following sections of the documentation which outlines everything you need to know about Document Object Model and parsing document elements:

https://docs.aspose.com/words/net/aspose-words-document-object-model/
https://docs.aspose.com/words/net/how-to-extract-selected-content-between-nodes-in-a-document/

Please let me know if I can be of any further assistance.

Best regards,