Merge PPS files and save as PDF in Python

Combine PPS presentations and save the merged slides as a PDF document with Aspose.Slides for Python via .NET. Microsoft PowerPoint is not required.

Merge PPS to PDF 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 the content and formatting of each cloned slide, including shapes, text, styles, comments, and animations. After merging the slides, you can save the destination Presentation as a PDF file.

Merge PPS files to PDF 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 PDF format.

Python code to merge PPS files and save as PDF

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.pdf", slides.export.SaveFormat.PDF)

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

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

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

  2. Load the first PPS file into a destination Presentation instance.

  3. Load 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.PDF to save the merged presentation as a PDF file.