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

Free Support Forum - aspose.com

Negative margin values lost when converting to HTML and back

Negative margin values are lost when converting tables to HTML and back.

The test document contains two tables.

Code:
var doc = new Document(“test.docx”);
var htmlSaveOption = new Aspose.Words.Saving.HtmlSaveOptions { AllowNegativeIndent = true };
doc.Save(“test.htm”, htmlSaveOption);
doc = new Document(“test.htm”);
doc.Save(“test_from_htm.docx”);

In the converted back .docx file the second table has shifted to the right, while initially it was aligned with the first table.

I’ve attached the test files and a screenshot for your reference.
test.zip (18.7 KB)
image.png (3.6 KB)

Thanks

@ServerSide527

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-18293. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.