Created
September 12, 2019 13:50
-
-
Save GroupDocsGists/78e8b54f383105a9943f45c61ceeabf2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-java | |
int zonesDetailLevel = DetailLevel.High; | |
ComparisonSettings settings = new ComparisonSettings(); | |
settings.setDetailLevel(zonesDetailLevel); | |
settings.setUseFramesForDelInsElements(true); | |
settings.getDeletedItemsStyle().setFontColor(Color.green); | |
settings.getStyleChangedItemsStyle().setFontColor(Color.RED); | |
ICompareResult compareResult = null; | |
Comparer comparer = new Comparer(); | |
compareResult = comparer.compare("source path/file", "target path/file", settings); | |
String resultPath = "result path/file"; | |
compareResult.saveImages(resultPath); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment