Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
Created September 12, 2019 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GroupDocsGists/78e8b54f383105a9943f45c61ceeabf2 to your computer and use it in GitHub Desktop.
Save GroupDocsGists/78e8b54f383105a9943f45c61ceeabf2 to your computer and use it in GitHub Desktop.
// 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