PNG JPG BMP TIFF POT
Aspose.Slides  for .NET

Merge POT Formats in C#

Native and high performance POT document merger using server-side Aspose.Slides for .NET APIs, without the use of any software like Microsoft or Open Office, Adobe PDF.

Merge POT File Using C#

In order to merge POT file, we’ll use

Aspose.Slides for .NET

API which is a feature-rich, powerful and easy to use document manipulation and merging API for C# platform. Open

NuGet

package manager, search for Aspose.Slides and install. You may also use the following command from the Package Manager Console.

Command


PM> Install-Package Aspose.Slides.NET

Steps for Merging POT Files in C#

A basic document merging and concatenating with Aspose.Slides for .NET APIs can be done with just few lines of code.

  1. Load all the POT files with full path.

  2. Make one document as the base file

  3. Call the relevant method for concatenating and merging files one by one.

  4. Call the Save() method and pass the file name (full path) and format (POT) as a parameter.

  5. Now you can open and use the POT file in Microsoft Office, Adobe PDF or any other compatible program.

System Requirements

Our APIs are supported on all major platforms and Operating Systems. Before executing the code below, please make sure that you have the following prerequisites on your system.

  • Microsoft Windows or a compatible OS with .NET Framework, .NET Core, Windows Azure, Mono or Xamarin Platforms
  • Development environment like Microsoft Visual Studio
  • Aspose.Slides for .NET DLL referenced in your project - Install from NuGet using the Download button above
 

Merge POT Files - C#

var ps1 = new Presentation("presen1.pot");
    var ps2 = new Presentation("presen2.pptx");
    
    //merged Presentation 
    var mp = new Presentation("template.pptx");
    while (mp.Slides.Count > 0){
        mp.Slides.RemoveAt(0);
    }
    // master slide
    var ms = mp.Masters[0];
    
    // The first POT presentation is added with its own styles.
    foreach (var slide in ps1.Slides){
        mp.Slides.AddClone(slide);
    }
    
    // The second PPTX presentation is added with template presentation styles using.
    foreach (var slide in ps2.Slides){
        mp.Slides.AddClone(slide, ms, true);
    }
    
    // It is possible to save the merged presentation to any supported format.
    mp.Save("mp.pptx", SaveFormat.Pptx);
    mp.Save("mp.pptx", SaveFormat.Pdf);  

    
 
  • Merge PDF Files Online

    How to Merge PDF in Python

    About Aspose.Slides for .NET API

    Aspose.Slides API can be used to read, write, manipulate and convert Microsoft PowerPoint documents to PDF, XPS, HTML, TIFF, ODP and various other formats. One can create new files from scratch and save those in the relevant supported formats. Aspose.Slides is a standalone API for creating, parsing or manipulating presentations, slides and elements and it does not depend on any software like Microsoft or OpenOffice.

    Online POT Merger Live Demos

    Other Supported Merging Formats

    Using C#, One can also merge many other file formats including.

    ODP (OpenDocument Presentation Format)
    OTP (OpenDocument Standard Format)
    POTM (Microsoft PowerPoint Template File)
    POTX (Microsoft PowerPoint Template Presentation)
    PPS (PowerPoint Slide Show)
    PPSM (Macro-enabled Slide Show)
    PPSX (PowerPoint Slide Show)
    PPT (Microsoft PowerPoint 97-2003)
    PPTM (Macro-enabled Presentation File)
    PPTX (Open XML presentation Format)