Merge PPS Files into PPSX in Python

Combine PowerPoint Slide Show files and save the merged slides as a PPSX presentation with a cross-platform Python API

Merge PPS to PPSX in Python

Aspose.Slides for Python via .NET lets you merge PowerPoint Slide Show (PPS) files by cloning slides from one presentation into another. After combining the slides with ISlideCollection.add_clone, call Presentation.save with SaveFormat.PPSX to save the merged slides as a single PPSX presentation.

Merge PPS files to PPSX using Python

Open the destination and source PPS presentations, append a clone of each source slide, and save the merged presentation as a PPSX file.

Python code for merging PPS files into a single PPSX presentation

with slides.Presentation("destination.pps") as destination_presentation:
    with slides.Presentation("source.pps") 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 PPS files into PPSX with Aspose.Slides for Python

Follow these steps to merge two PPS files and save the result as a single PPSX presentation.

  1. Install Aspose.Slides for Python via .NET by following the installation guide .

    pip install aspose-slides
    

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

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

  4. Iterate through the source slides and call ISlideCollection.add_clone for each slide.

  5. Call Presentation.save with SaveFormat.PPSX to save the merged slides as a single PPSX presentation.