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