Merge PPTX Files into POT in Python

Combine PowerPoint presentations and save the result as a POT file with a fast, cross-platform Python API. Microsoft PowerPoint is not required.

Merge PPTX to POT in Python

Aspose.Slides for Python via .NET is a Python library for creating, editing, and converting presentation files. To merge PPTX presentations, clone each slide from a source Presentation into a destination presentation by calling add_clone on its slides collection. Cloned slides retain their shapes, styles, text, formatting, comments, and animations. The combined presentation can then be saved as a POT file.

Merge PPTX files to POT using Python

Clone each slide from the source presentation into the destination presentation, then save the combined presentation in POT format.

Python code to merge multiple PPTX files into one POT file

with slides.Presentation("presentation1.pptx") as destination_presentation:
    with slides.Presentation("presentation2.pptx") as source_presentation:
        for slide in source_presentation.slides:
            destination_presentation.slides.add_clone(slide)

    destination_presentation.save("merged.pot", slides.export.SaveFormat.POT)

How to merge PPTX to POT using Aspose.Slides for Python API

Follow these steps to merge two PPTX files and save the result as POT in Python.

  1. Install Aspose.Slides for Python via .NET with pip install aspose-slides.

  2. Load the first PPTX file into the destination Presentation, and load the second PPTX file into the source Presentation.

  3. Iterate through the source presentation’s slides collection.

  4. Clone each source Slide into the destination presentation by calling add_clone .

  5. Call Presentation.save with SaveFormat.POT to write the merged presentation to a POT file.