GroupDocs.Comparison for Java 21.6 Release Notes

Major Features

Below is the list of most notable changes in release of GroupDocs.Comparison for Java 21.6:

  • Refactor getDocumentInfo Method for Cells
  • Improved comparing of DocumentTags Word
  • Improved sheet rendering for Cells
  • Fixed invalid page height and width in getChanges method
  • Fixed issue with comparing problem with tables in PDF
  • Added ability to merge source code file
  • Added more options for SummaryPage
  • Fixed issue with style comparison in the types math formula in word
  • Fixed issue with comparing PDF protected with password documents
  • Fixed incorrect counting of changes in SummaryPage
  • Fixed comparing span tags in HTML document
  • Fixed number of issues with HTML documents comparing
  • Extended SummaryPage
  • Fixed issue with comparing complex PDF documents
  • Fixed comparing PDF without license
  • Fixed wrong comparing of hyperlinks in Word documents
  • Improved comparing tables with several columns of different sizes in a Word Document
  • Improved accept\reject changes Words document
  • Added SaveOriginalState option for applyChanges method
  • Improved images output
  • Fixed issue with comparing tables on Words documents
  • Fixed issue with numbered list in output document
  • Fixed issue when losses anchor and range information for all the comments
  • Added comparison of bookmarks for Word format
  • Added comparison of variables and document properties for Word format
  • Added the ability to load custom fonts for a documents
  • Improved image comparison and image positioning after comparison for Cells format
  • Fixed comparison of Pen images for Word format
  • Fixed сomparison crashes for particular Word files
  • Fixed getting special revisions from document
  • Improve Revisions handling in Words documents
  • Fixed issue with text duplication in Words
  • Fixed issue with incorrect display of tables without displaying added or deleted cells
  • Improved display of elements with a border in Pdf format
  • Improved text display in Pdf format
  • Added comparison of footnote types in Word format
  • Added SourceText property to ChangeInfo class and improved TargetText property for Cells, Words and Pdf formats
  • Fixed closing the stream after generating preview in PDF format
  • Fixed generating previews in Diagram format
  • Fixed generating previews in HTML format
  • Fixed saving the comparison result in HTML format using the file stream
  • Improved comparison in Excel format using pictures and diagrams
  • Improved TargetText property for Diagram, Slide, Txt and Note formats
KeySummaryIssue Type
COMPARISONNET-2416Add more SummaryPage optionsFeature
COMPARISONNET-2425Add ExtendedSummaryPage optionFeature
COMPARISONNET-2483Accept or reject all changes in a single Word DocumentFeature
COMPARISONNET-2427Added SaveOriginalState option for ApplyChanges methodFeature
COMPARISONNET-2133Comparison of bookmarks for Word formatFeature
COMPARISONNET-2145Ability to load custom fonts for a documentsFeature
COMPARISONNET-2585Improve ability of getting source text for Words documentsFeature
COMPARISONNET-2586Improve ability of getting source text for PDF documentsFeature
COMPARISONNET-2587Improve ability of getting source text for Cells documentsFeature
COMPARISONNET-2134Comparison of variables and document properties for Word formatFeature
COMPARISONJAVA-822Implement ShowInsertedContent FunctionFeature
COMPARISONJAVA-882Comments comparison in Presentation slidesImprovement
COMPARISONNET-2383Comparison.Cells Compare empty cells with a modified styleImprovement
COMPARISONNET-2380Refactor getDocumentInfo Method for CellsImprovement
COMPARISONNET-2388Improving sheet rendering for CellsImprovement
COMPARISONNET-2384Improve comparing of DocumentTags WordImprovement
COMPARISONNET-2458Improved images outputImprovement
COMPARISONNET-2140Issue with comparing images and their position after comparison in Cell formatImprovement
COMPARISONNET-2557Improve Revisions handling in Words documentsImprovement
COMPARISONNET-2563Footnotes are not comparedImprovement
COMPARISONNET-2595Improve ability of getting source text for Diagrams documentsImprovement
COMPARISONNET-2594Improve ability of getting source text for Slides documentsImprovement
COMPARISONNET-2589Improve ability of getting source text for Text documentsImprovement
COMPARISONNET-2598Improve ability of getting source text for Notes documentsImprovement
COMPARISONNET-2387Invalid page height and width in getChanges methodBug
COMPARISONNET-2385Cells error comparing with table toolsBug
COMPARISONNET-2412Incorrect style comparison in the types math formula in wordBug
COMPARISONNET-2421Comparing two PDF files, incorrect password exceptionBug
COMPARISONNET-2420Incorrect counting of changes in SummaryPageBug
COMPARISONNET-2418Html fix comparing of span tagsBug
COMPARISONNET-2351HTML comparison issueBug
COMPARISONNET-2422The problem when comparing tables with several columns of different sizes in a Word DocumentBug
COMPARISONNET-2419Comparing two Word files doesn’t show deleted commentBug
COMPARISONNET-2455Wrong comparing of Hyperlinks in wordBug
COMPARISONNET-2456Issue in comparing complex PDF filesBug
COMPARISONNET-2457Simple PDF comparison without license returns nothingBug
COMPARISONNET-2487Numbered List issue in the output documentBug
COMPARISONNET-2482Word comparison doesn’t show inserted/deleted tableBug
COMPARISONNET-2481The result of comparison loses anchor and range information for all the commentsBug
COMPARISONNET-2477Same images appear as inserted or deleted in Word comparisonBug
COMPARISONNET-2100Pen results comparison issueBug
COMPARISONNET-2146Comparison crashes for particular Word filesBug
COMPARISONNET-2151Error getting revisionsBug
COMPARISONNET-2513Comparison crashes for particular Word filesBug
COMPARISONNET-2537Comparison of DOCX files Text is duplicated after comparison, rather than being recognized as replaced in the outputBug
COMPARISONNET-2533Comparison issue in Word documents with tables (Incorrect document creation with disabled display of changes in tables in Word format)Bug
COMPARISONNET-2451Text Box Comparison issue in PDFBug
COMPARISONNET-2454Part of the symbols are not displayed when comparing PDF filesBug
COMPARISONNET-2592Cannot compare particular Excel sheetsBug
COMPARISONNET-2599Preview generator closes stream for pdfBug
COMPARISONNET-2600Diagram preview does not insert text inside shapesBug
COMPARISONNET-2603Incorrect display of Excel documentBug
COMPARISONNET-2602Charts are not displayed in Excel formatBug
COMPARISONNET-2601HTML preview renders only one imageBug
COMPARISONJAVA-870Table of contents comparison wrong resultsBug
COMPARISONJAVA-869Pen comparison results issueBug
COMPARISONJAVA-876Issue in comparing Excel files with table toolsBug
COMPARISONJAVA-928Text Box Comparison issue in PDFBug
COMPARISONJAVA-937Graph comparison issue in ExcelBug
COMPARISONJAVA-975Document comparison shows no difference and a warning message in the outputBug
COMPARISONJAVA-978Expected Spreadsheets with images comparison outputBug
COMPARISONJAVA-977Find character string before and after the differenceBug

Public API and Backward Incompatible Changes

Revision - changes received when comparing documents using built-in Word tools.

To solve this problem, new ShowRevisions property was created that allows you to disable the display of these Revisions in the resulting document. An example of the code for using the new property is presented below.

  • Learn more about getting source and target texts, which can be found here
try (Comparer comparer = new Comparer(sourcePath)) {
    comparer.add(targetPath);
    CompareOptions options = new CompareOptions();
    options.setShowRevisions(false);
    final Path resultPath = comparer.compare(RESULT_PATH, options);
}

More information about the new property can be found here.

  • Comparison of types of footnotes refers to comparison of styles, besides, this type of change is difficult to display in the text. Therefore these changes are marked on the principle of blank lines or pictures in the document (using comments). For clarity comparison of footnote types, you could use the following code snippet:
try (Comparer comparer = new Comparer(sourcePath)) {
    comparer.add(targetPath);
    CompareOptions options = new CompareOptions();
    options.setDetectStyleChanges(true);
    options.setDetalisationLevel(DetalisationLevel.High);
    final Path resultPath = comparer.compare(RESULT_PATH, options);
}
  • For some reasons result file extension can be changed, so you should use result of compare method instead of RESULT_PATH to get result data
try(Comparer comparer = new Comparer(sourcePath)) {
    comparer.add(targetPath);
    final Path resultPath = comparer.compare(RESULT_PATH);
    if(resultPath != null) {
        // Use resultPath (if it is not null) to read the file, instead of RESULT_PATH
    }
}