We're sorry GroupDocs doesn't work properply without JavaScript enabled.

Free Support Forum - groupdocs.com

GroupDocs.Comparison compares differently documents that has watermarks

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))
            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)

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.


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.

1 Like

Thank you @Atir_Tahir. I am also trying to understand difference in behaviour. For us scenario where watermarks are ignored works perfectly as we would like to ignore them and compare rest of document content.

If it will be fixed, is there any way to compare document with GroupDocs and ignore watermark:

  • Pass additional parameter (so it would work as per first scenario)
  • Or maybe to compare text and styles of document only (but no image comparison)

We would like to know if it would work for both .docx and .pdf files too?

So, first scenario is more feature rather than bug for us, and we are happy to have this feature, as long as we do understand how it works. :slight_smile:

I guess question also was also what is different is those free documents, as per me all three should be either same or all three not the same,but at the moment two of them are the same and one different.

1 Like

This ticket is still under investigation. We’ll surely notify you about Comparison behavior for these files.

1 Like