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

Free Support Forum - aspose.com

Revision from html wrong styles

In finaly doc, revisons has strike and underline styles. Why?

Document test = new Document("C:/revisions/t.docx");
String temp = test.toString(SaveFormat.HTML);

DocumentBuilder b = new DocumentBuilder();
b.insertHtml(temp, false);
Document d = b.getDocument();
d.save("C:/revisions/t1.docx", SaveFormat.DOCX );

Hi Mike,

Thanks for your inquiry. Please note that Aspose.Words mimic the same behavior as MS does. If you convert your document to Html using MS Word, you will get the same output.

Please manually create your expected Word document using Microsoft Word and attach it here for our reference. We will investigate how you want your final Word output be generated like. We will then provide you more information on this along with code.

Please also share the screenshot of your input document. Thanks for your cooperation.

Yes docx to html conversion is ok - but i’m talking about html to docx conversion.
If source html contains revisions ( or ) (http://joxi.ru/n2YRRaPFooXeVA) than resulted docx will have redundant strike or underline styles and
when you apply or reject revisions, styles stay on text
(http://joxi.ru/5mdNNYPFkkj8ZA). If I open html by MS world and reject or apply revision, I don’t have any strike or underline http://joxi.ru/8An55oRTjjYya2

Hi Mike,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-14521. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.