Hi Guys, could you please assist me on a question I have.
I an trying to compare two .docx files using GroupDocs.Comparison (code below) :
string source = @"C:\temp\image.docx";
string target = @"C:\temp\image_.docx";
using (Comparer comparer = new(source))
{
comparer.Add(target);
comparer.Compare(
@"C:\temp\ImageTest_report.docx",
new CompareOptions {
DetalisationLevel = DetalisationLevel.High,
DetectStyleChanges = true,
CalculateCoordinates = true,
});
ChangeInfo[] changes = comparer.GetChanges();
// check changes.Count() > 0;
}
For two files (image.docx and image_.doxc) I have 0 changes, even there is a watermark that has different location in both files.
When I make a copy of image_.docx and manually move watermark, it does show me that there is a shape deleted and shape inserted.
Question is why for image.docx and image_.docx watermark location is ignored, but for image.docx and image_1.docx it is not ignored?
For me ignoring of watermark works, however I would like to understand difference in behaviour of comparison.
I am also attaching all 3 files.image_1.docx (30.9 KB)
image.docx (30.7 KB)
image_.docx (30.7 KB)