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

Free Support Forum - aspose.com

Convert .docx to .html and write into .txt file

convert docx file with all formatting (Like bold, space, text style, color etc) and write into.txt file

@rabin.samanta

Thanks for your inquiry. Please use the following code example to get the desired output. If you still face problem, please ZIP and attach your input and expected output documents here for our reference. We will then provide you more information about your query.

Document document = new Document(MyDir + "input.docx");
document.save(MyDir + "output.txt", SaveFormat.HTML);

@tahir.manzoor
It’s return to much information .
I need only

,,  tag only.
And how i will add my own tag what a need (Like etc)

@rabin.samanta

Thanks for your inquiry. Please ZIP and attach your input and expected output documents here for our reference. We will then provide you more information about your query.

@tahir.manzoor
output.zip (9.5 KB)

I upload Input.docx and output.txt file

@rabin.samanta

Thanks for sharing the detail.

Aspose.Words exports the styles correctly in output HTML.

In this case, we suggest you please iterate over all paragraph and run nodes and generate the HTML according to your requirement. You can check the font formatting of text using Run.Font property.