XDoc.PowerPoint is a FREE C# Office PowerPoint library to read, convert, edit, create PPTX documents in .NET Framework projects. XDoc.PowerPoint from RasterEdge is an advanced Microsoft PowerPoint C# library : * It is FREE * Generate PPTX from scratch * Convert PPTX to PDF, SVG, HTML, multi-page TIFF, JPG, PNG and many raster image formats * Edit, process, merge PowerPoint document Compatible with * .NET Framework 4.x, 3.x, 2.x * Windows, MacOS, Linux, Docker, Azure Online Documents * C# How to Guide : https://www.rasteredge.com/how-to/csharp-imaging/powerpoint-reading/ * Email : support@rasteredge.com
$ dotnet add package XDoc.PowerPoint.FrameworkOnce installed the package, you can use the following C# code to combine multiple PPTX files into one.
String inputFilePath1 = Program.RootPath + "\\" + "1.pptx";
String inputFilePath2 = Program.RootPath + "\\" + "2.pptx";
String outputFilePath = Program.RootPath + "\\" + "Output.pptx";
String[] inputFilePaths = new String[2] { inputFilePath1, inputFilePath2 };
// Combine two PowerPoint files.
PPTXDocument.CombineDocument(inputFilePaths, outputFilePath);