Compare Functionality - Issues

Hello Team,
I encountered two issues while using the Compare feature provided by Aspose.
Issue 1 -
When comparing documents that contain images, sometimes the sidebar appears in areas that haven’t been changed. We only need the sidebar to highlight the affected areas, similar to the default comparison feature in Microsoft Word. I also tested the same set of documents using Word’s compare feature, and it behaves differently.

Issue 2 -
Sometimes, when I edit content in a text editor and then convert the compared result using Aspose Compare to HTML, only one part of the content is visible, while the other part is overwritten.

Aspose.Words.Comparing.CompareOptions compareOptions = new Aspose.Words.Comparing.CompareOptions
{
    IgnoreFormatting = true,
    IgnoreCaseChanges = false,
    IgnoreTables = false,
    IgnoreFields = false,
    IgnoreFootnotes = false,
    IgnoreComments = false,
    IgnoreTextboxes = false,
    IgnoreHeadersAndFooters = false,
    Granularity = Granularity.CharLevel,
    CompareMoves = true
};

document1.Compare(document2, "Comparison", DateTime.Now, compareOptions);

RevisionOptions revisionOptions = document1.LayoutOptions.RevisionOptions;                
revisionOptions.InsertedTextColor = RevisionColor.Green;
revisionOptions.DeletedTextColor = RevisionColor.Red;

HtmlFixedSaveOptions opt = new HtmlFixedSaveOptions();
opt.PrettyFormat = true;
opt.ExportEmbeddedCss = true;
opt.ExportEmbeddedFonts = true;
opt.ExportEmbeddedImages = true;
opt.ExportEmbeddedSvg = true;
opt.ShowPageBorder = false;

document1.Save(memoryStream, SaveFormat.Docx);

After downloading the result from Aspose Compare, you can see that the text editor content is overwritten. You can drag and drop to view the changes.

COMPARE VERSION.zip (3.2 MB)

Could you kindly provide the reason for these issues and suggest any possible solutions, if available?

@KeerthanaRamesh19

  1. You should use Granularity.WordLevel to get the same output as MS Word.

  2. 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-27578
    

    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.