Merge PPTX Files into PPS in Python

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

Merge PPTX to PPS 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 PPS slide show.

Merge PPTX files to PPS using Python

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

Python code to merge multiple PPTX files into one PPS 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.pps", slides.export.SaveFormat.PPS)

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

Follow these steps to merge two PPTX files and save the result as PPS 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.PPS to write the merged presentation to a PPS file.