Hello.
Result of Document.AcceptAllRevisions() differs from result of “Accept all changes in document” in MS Word. AcceptAllRevisions() removes “Paragraph 2” text (see attached acceptrev.docx), but, as I understand, it shouldn’t do it.
using (var stream = new FileStream(@“acceptrev.docx”, FileMode.Open))
{
var document = new Document(stream);
document.AcceptAllRevisions();
document.Save(@“result.docx”, SaveFormat.Docx);
}
Aspose.Words version 16.8.0.0 is used.