License lic = new License();
lic.setLicense(System.getProperty([path to licesnse file].toString());
//Add settings
CompareOptions options = new CompareOptions();
options.setExtendedSummaryPage(true);
options.setCompareVariableProperty(true); // to activate the comparison of variable properties in word
options.setCompareDocumentProperty(true); // to activate the comparison of built and custom properties in word
options.setShowRevisions(true); // enable revisions
options.setCompareBookmarks(true); // compare bookmarks in word
options.setDetectStyleChanges(true); //enable style changes
options.setDetalisationLevel(DetalisationLevel.High); // detail logging to high
options.setGenerateSummaryPage(true); // add summary page with detected changes statistics to resultant document
//Compare Docs
comparer.compare(resPath,options);
//Get List of changes
ChangeInfo[] changes = comparer.getChanges();
System.out.println("Count of changes: " + changes.length);
Problematic Files: Cant attach ppt file because upload is not supported. Attaching images instead slide-1_ppt1.jpg (13.1 KB) slide-1_ppt2.jpg (12.6 KB)
We get same exception when we compare the provided PPTX files in Java. Therefore, we’ve logged this issue in our internal issue tracking system with ID COMPARISONJAVA-1299. It’ll be now further investigated. We’ll notify you in case of any update.