Hello,
after comparing two documents and accepting revision marks I have different results, see photo. Can you take a look at what the problem is and if I am doing something wrong?
A.Compare(B, "test", DateTime.Now);
many thanks in advance
a.docx (17.8 KB)
b.docx (24.6 KB)
@benestom
You’re seeing different output after you accept the revisions that Document.Compare creates.
When the revisions are accepted, Aspose .Words can remove the BookmarkStart/BookmarkEnd nodes for many paragraphs, so the saved document no longer contains those bookmarks [2]. Revisions are applied to individual nodes (runs, paragraphs, etc.) and may be grouped, so accepting them rewrites or deletes the underlying nodes, which can change the layout and appearance of the result [3].
What you can try
- Process revisions before accepting them – iterate
doc.Revisions and extract the information you need (e.g., bookmark IDs) while the nodes are still present.
- Re‑insert missing bookmarks – after accepting revisions, add the required bookmarks back based on your own mapping if downstream processing depends on them.
- Avoid accepting revisions if you can work with the revision‑marked document directly, or adjust
CompareOptions to limit the types of changes you need.
If these steps don’t resolve the discrepancy, please share a minimal reproducible sample so we can investigate further.
@benestom
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): WORDSNET-29046
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.