Skip to end of metadata
Go to start of metadata
Contents Summary
 

Following are some methods and Operations used in GroupDocs.Comparison API examples to Elaborate the Working of Word Processing Document formats Comparison, where you can get the output as file or stream and use more advance Comparison options.

The source code in below examples uses some methods defined in Common Settings

comparison.compare method takes source file and target file as input document and produces comparison results.

Compare From Stream

Compare two Word Processing Documents from streams with saving results into a file

Compare From File

Compare two Word Processing Documents from file path with saving results into a file

Compare From File with document settings

Compare two Word Processing Documents from File with saving results into a file with document settings

Compare From Stream with document settings

Compare two Word Processing Documents from Stream with saving results into a file with document settings

Compare From File with WordsComparisonSettings

The Recipe

  • Get source and target files
  • Create instance of ComparisonSettings
  • Set setGenerateSummaryPage property to true
  • Set setShowDeletedContent property to true
  • Create instance of Comparer
  • Call method compare(), pass source file, target file and settings to the method
  • Save output

The Code

Labels
  • No labels