When I converted a DOCX (not in compatibility mode) to an HTM file using Aspose.Words, then converted it back to DOCX. I noticed the DOCX became in compatibility mode and margin value was changed unexpectedly.
var doc = new Document(@".\test.docx");
var htmlSaveOption = new HtmlSaveOptions();
htmlSaveOption.AllowNegativeIndent = true;
var htmlDoc = new Document(@".\out.htm");
The negative margin value was -0.5cm in the original document, but it became -0.3cm in the final document.
I’ve attached the test files and a screenshot for your reference. Could you please help me check?