When converting DOCX files to HTML then convert back to DOCX using Aspose.Words. I noticed the cell margins got unexpectedly changed.
var doc = new Document(@".\test.docx");
var htmlSaveOption = new HtmlSaveOptions();
htmlSaveOption.AllowNegativeIndent = true;
var htmlDoc = new Document(@".\out.htm");
I’ve attached two sets of test documents (one original document is in compatibility mode and another one is not) both could replicate the issue. I’ve also attached a screenshot here.
In MS Word, we can save the DOCX to HTML then open it back using Word without losing/changing any of the styles. Could you help me check this?