Comparing two DOCX files doesn't highlight all differences in Java

Hi ,
I am trying to compare two docx streams .I am getting the result file with one highlight word in blue. But i see more diffferences between source and target . I am attaching those files .Let me know what should i do to highlight changes in red.
Code Snippet : Compare version (20.4 - not licensed version)
final Comparer comparer = new Comparer(sourceStream);
comparer.add(targetStream);
CompareOptions compareOptions= new CompareOptions();
compareOptions.setDetectStyleChanges(true);
StyleSettings sty = new StyleSettings();
sty.setFontColor(Color.RED);
compareOptions.setChangedItemStyle(sty);
comparer.compare(byteArrayOutputStream,compareOptions);

CompareFiles.zip (174.6 KB)

@bselvam

We are investigating this issue. Your investigation ticket ID is COMPARISONJAVA-893. As there’s any update, you’ll be notified.

Sure .Thank you.

1 Like

@bselvam

You’re welcome.