Hi,
When converting DOCX files to HTML then convert back to DOCX using Aspose.Words. I noticed the cell margins got unexpectedly changed.
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");
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.
test files.zip (41.4 KB)
image.png (44.5 KB)
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?