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

Free Support Forum - groupdocs.com

Incorrect coordinates to view comparison highlights

Hi,
I tried out the Demo for GroupDocs.Comparision listed here and even though i have applied the temporary license, the coordinates for comparison viewer are not correct. Sometimes they miss by a page number, sometimes they extend outside the document margin and continuous style changes on same line come out as two separate changes.

1 Like

@sachdvipu

Please share the source, target and the output (expected and API generated) files. If the source and target files are complex, it’d be great if you highlight the comparison issue (wrong coordinates) in the output file. We’ll then investigate this scenario accordingly.

@Atir_Tahir Please find the files attached

ComparisonResult.zip (1.7 MB)
Documents.zip (2.9 MB)
compareResposne (2).zip (5.8 KB)
Actual_3(Expected).zip (2.6 MB)
Actual_2(Expected).zip (3.2 MB)
Actual_1(Expected).zip (3.3 MB)

Also, the page number in the response files are modified with code below as i have tried to mitigate that issue.
ComparisonServiceImp.cs

        > Comparer compareResult = CompareFiles(compareRequest, resultGuid);
        ChangeInfo[] changes = compareResult.GetChanges();
       for(int i=0; i < changes.Length; i++)
        {
            var page = changes[i].PageInfo.PageNumber;
            if (page == 0)
                continue;
            changes[i].PageInfo.PageNumber = page - 1;
        }

image.png (38.8 KB)

1 Like

@sachdvipu

Thanks for the details. We are investigating this scenario. Your investigation ticket ID is COMPARISONNET-3102. We’ll notify you in case of any update.