Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Column
width50%
Panel
titleBGColor#B0C4DE
titleContents Summary
Table of Contents
stylenone
outlinetrue
typelist
Column
 

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.

...

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

HTML

<script src="https://gist.github.com/GroupDocsGists/a81cd2401a00c97c085d727312d6a332.js"></script>

...

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

HTML

<script src="https://gist.github.com/GroupDocsGists/827051cde184b650436a416d2a2a2eef.js"></script>

...

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

HTML

<script src="https://gist.github.com/GroupDocsGists/d6d550219261c2c8b75d60d36ce9a0fa.js"></script>

...

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

HTML

<script src="https://gist.github.com/GroupDocsGists/359347351c0845479ca477f9cd6d60d6.js"></script>

...

  • Get source and target files
  • Create instance of WordsComparisonSettings ComparisonSettings
  • Set setGenerateSummaryPage property to true
  • Set setShowDeletedContent property to true
  • Create instance of GroupDocs.Comparison.Comparison Comparer
  • Call method compare(), pass source file, target file, result path FileType and file and settings to itthe method
  • Save output

The Code

HTML

<script src="https://gist.github.com/GroupDocsGists/84e2fd96dd7a722c0ec54a017b1ca734.js"></script>