Merge PPS files and save as PPSM in Python

Combine PPS presentations and save the merged slides as a macro-enabled PowerPoint slide show with Aspose.Slides for Python via .NET. Microsoft PowerPoint is not required.

Merge PPS to PPSM in Python

Aspose.Slides for Python via .NET lets you combine multiple PPS presentations by cloning slides from one Presentation into another. The SlideCollection.add_clone method preserves slide content and formatting, including shapes, text, styles, comments, and animations. After merging the slides, call Presentation.save with SaveFormat.PPSM to create a macro-enabled PowerPoint slide show.

Merge PPS files to PPSM using Python

Load one PPS file as the destination presentation, clone the slides from the other PPS file into it, and save the merged result in PPSM format.

Python code to merge PPS files and save as PPSM

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

    destination_presentation.save("merged_presentation.ppsm", slides.export.SaveFormat.PPSM)

How to merge PPS files and save as PPSM with Aspose.Slides for Python

Follow these steps to merge two PPS files and save the result as a PPSM slide show in Python.

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

  2. Make the aspose.slides namespace available as slides in your Python project.

  3. Load the first PPS file into a destination Presentation instance and the second PPS file into a source Presentation instance.

  4. Iterate through the source Presentation.slides collection and call SlideCollection.add_clone for each Slide.

  5. Call Presentation.save with SaveFormat.PPSM to save the merged presentation as a PPSM file.

Export PPS to Other Supported Formats

You can also combine PPS presentations and export the merged result to other supported formats.