Preserve TabStops Underlines Spans during DOCX to HTML and HTML to DOCX round-trip Java Conversions

simple code for reproduce

Document doc1 = new Document("C:\\test\\test.docx");
doc1.save("C:\\test\\test_out.html");
DocumentBuilder builder = new DocumentBuilder();
String htmlDoc2=FileUtils.readFileToString(new File("C:\\test\\test_out.html"));
builder.insertHtml(htmlDoc2);
Document d2 = builder.getDocument();
d2.joinRunsWithSameFormatting();
d2.save("C:\\test\\test_out.docx");

How I can source-like convert to html underline and after back to word doc? It’s bug? There are picture that show problem http://joxi.ru/GrqddXnF4KaDgA

@handmade,

To ensure a timely and accurate response, please ZIP and attach the following resources here for testing:

  • Your simplified input Word document (test.docx)
  • Aspose.Words generated output documents (test_out.html and test_out.docx)
  • Your expected document showing the correct output. You can create expected document by using MS Word.

As soon as you get these pieces of information ready, we will start further investigation into your scenario and provide you more information. Thanks for your cooperation.

sorry forget attach test.zip (25.6 KB)

Ms word save to html like that http://joxi.ru/brREE5PC7kKkgA
testmsWord.zip (4.4 KB)

@awais.hafeez any updates?

@handmade,

We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-18970. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience and the delay.