Problem on saving document in DOCX to HTML FIXED, if replacing text before accepting the revisions

Hello,

We encounter a problem when saving a document in DOCX to HTML FIXED.

We perform multiple manipulations on this document, in the order we replace text, and we accept pending revisions to finally save it.

When the text is replaced before accepting the revisions saving of the file is not possible.

The code I provided shows you the problem.

Note that saving the same document in HTML works.

Can you look ?

Thank you Best regards

element.zip (4.5 MB)

Tested in Aspose.Words 21.9 version

@ISIWARE

We have tested the scenario and managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-22753. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

@ISIWARE

Please call Document.UpdatePageLayout method before saving the document to avoid the shared issue.

document.UpdatePageLayout();
document.Save(MyDir + "21.10.html", SaveFormat.HtmlFixed);