Hi,
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.
Code:
var doc = new Document(@".\test.docx");
var htmlSaveOption = new HtmlSaveOptions();
htmlSaveOption.AllowNegativeIndent = true;
doc.Save(@".\out.htm", htmlSaveOption);
var htmlDoc = new Document(@".\out.htm");
htmlDoc.Save(@".\convertedBack.docx");
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?
test.zip (15.9 KB)
image.png (75.4 KB)
Thanks,