convert docx file with all formatting (Like bold, space, text style, color etc) and write into.txt file
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);
It’s return to much information .
I need only
,, tag only.
And how i will add my own tag what a need (Like etc)
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.
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.