# Save comparison result in different format Save the GroupDocs.Comparison for .NET result document in a format different from the source — for example compare .txt files and save the result as .pdf — by specifying the target extension in the Compare() path. [GroupDocs.Comparison](https://products.groupdocs.com/comparison/net) allows you to save output document in different formats. To save output document in different format, follow these steps: 1. Instantiate the [Comparer](https://reference.groupdocs.com/comparison/net/groupdocs.comparison/comparer) object. Specify the source document path or stream. 2. Call the [Add](https://reference.groupdocs.com/comparison/net/groupdocs.comparison/comparer/methods/add/index) method. Specify the target document path or stream. 3. Call the [Compare](https://reference.groupdocs.com/comparison/net/groupdocs.comparison/comparer/methods/compare/index) method. Specify the result document path with the required format. The following code snippet shows how to save comparison result in different format: {{< tabs "example1">}} {{< tab "C#" >}} ```csharp using GroupDocs.Comparison; // ... using (Comparer comparer = new Comparer("source.txt")) { // Add target document comparer.Add("target.txt"); // Compare and save comparison result comparer.Compare("result.pdf"); } ``` {{< /tab >}} {{< /tabs >}} ## See also - [Set password for output document]({{< ref "comparison/net/advanced-usage/saving/set-password-for-resultant-document.md" >}}) - [Set document metadata on save]({{< ref "comparison/net/advanced-usage/saving/set-document-metadata-on-save.md" >}}) - [Supported file formats]({{< ref "comparison/net/getting-started/supported-document-formats.md" >}})