To save output document in different format, follow these steps:
Instantiate the Comparer object. Specify the source document path or stream.
Call the Add method. Specify the target document path or stream.
Call the Compare method. Specify the result document path with the required format.
The following code snippet shows how to save comparison result in different format:
usingGroupDocs.Comparison;// ...using(Comparercomparer=newComparer("source.txt")){// Add target documentcomparer.Add("target.txt");// Compare and save comparison resultcomparer.Compare("result.pdf");}