Merge PPSX Files and Save as PDF in Python

Combine PowerPoint Show files and export the merged presentation to PDF with a cross-platform Python API. Microsoft PowerPoint is not required.

Merge PPSX to PDF in Python

Aspose.Slides for Python via .NET lets you merge PPSX files by cloning slides from a source Presentation into a destination Presentation. After combining the slides with SlideCollection.add_clone, call Presentation.save with SaveFormat.PDF to export the merged presentation as a single PDF document.

Merge PPSX files to PDF using Python

Open the destination and source PPSX presentations, append a clone of each source slide, and export the merged presentation as a single PDF file.

Python code to merge PPSX files and save as PDF

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

How to Merge PPSX Files and Save as PDF with Aspose.Slides for Python

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

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

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

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

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

  5. Call Presentation.save with SaveFormat.PDF to write the merged presentation as a single PDF file.