We can compare two or more PowerPoint presentations and highlight differences programmatically in the cloud. This helps in tracking revisions, ensuring consistency, and identifying changes between different versions of slides. In this article, we’ll learn how to compare PowerPoint presentations in C# .NET using GroupDocs.Comparison Cloud SDK.
The following topics shall be covered in this compare Microsoft PowerPoint presentations:
PowerPoint Comparison API
To compare PowerPoint PPTX files, we’ll use the GroupDocs.Comparison Cloud SDK for .NET. It allows you to compare multiple presentations and generate a resultant PPTX file with highlighted differences.
Please the SDK using the following command in the console:
Install-Package GroupDocs.Comparison-Cloud
Please get your Client ID and Secret from the dashboard before following the mentioned steps. Once you have your ID and secret, add in the code as shown below:
Compare Two PowerPoint Presentations in C#
You can compare two PPTX files in the cloud by following these steps:
- Upload the source and target files.
- Compare PPTX files using the Comparison API.
- Download the resultant presentation.
We can compare two PowerPoint files on the cloud by following the simple steps given below:
Upload PowerPoint Presentations
The first step is to upload the source and target PPTX files to the cloud using the following code sample:
var fileApi = new FileApi(configuration);
using (var source = File.OpenRead("source.pptx"))
{
fileApi.UploadFile(new UploadFileRequest("source.pptx", source));
}
using (var target = File.OpenRead("target.pptx"))
{
fileApi.UploadFile(new UploadFileRequest("target.pptx", target));
}
Now execute the following code snippet to compare the two PowerPoint presentations using C# .NET.
var options = new ComparisonOptions
{
SourceFile = new FileInfo { FilePath = "source.pptx" },
TargetFiles = new List<FileInfo> { new FileInfo { FilePath = "target.pptx" } },
OutputPath = "result/result.pptx"
};
var request = new ComparisonsRequest(options);
var response = apiInstance.Comparisons(request);

Try Online
Want to test without coding? Use the free online PowerPoint comparison tool powered by same REST API.

Conclusion
In this article, we have learned how to Compare PowerPoint presentations in C# .NET and how to identify changes between two or more PPTX files. We have also discovered the ease of PowerPoint comparison using .NET REST API. Try using our API and explore the world of document comparison with ease.