Merge PPSX files in Python

Combine multiple PPSX slide shows into one file with Aspose.Slides for Python via .NET. Microsoft PowerPoint and OpenOffice are not required.

Merge PPSX in Python

Aspose.Slides for Python via .NET lets you merge PPSX slide shows by cloning slides from a source Presentation into a destination Presentation. The cloned slides retain their layouts, shapes, styles, text, formatting, comments, and animations. Save the destination presentation with SaveFormat.PPSX to produce one PowerPoint slide show.

Merge PPSX files using Python

Clone each source slide with add_clone, then call save with SaveFormat.PPSX.

Python code to merge multiple PPSX files

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

    destination_presentation.save("merged_presentation.ppsx", slides.export.SaveFormat.PPSX)

How to merge PPSX using Aspose.Slides for Python API

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

  1. Install Aspose.Slides for Python via .NET .

  2. Import the aspose.slides package.

  3. Open the destination and source PPSX files as Presentation instances.

  4. Clone each source slide by using add_clone .

  5. Save the merged presentation as a PPSX file by using SaveFormat.PPSX.