Merge PDF Files and Save as PPS in Python

Import pages from multiple PDF files and save the combined content as a PPS slide show with a cross-platform Python API

Merge PDF to PPS in Python

Aspose.Slides for Python via .NET lets you combine PDF files by importing their pages into a Presentation. SlideCollection.add_from_pdf converts each PDF page into a slide and appends it to the presentation. After importing all source files, call Presentation.save with SaveFormat.PPS to write the combined content as a PowerPoint 97-2003 slide show.

Merge PDF Files to PPS Using Python

Create a presentation without its default blank slide, import the source PDF files in the required order, and save the combined slides as a single PPS file.

Python code for merging PDF files into a single PPS file

with slides.Presentation() as presentation:
    presentation.slides.remove_at(0)
    presentation.slides.add_from_pdf("document1.pdf")
    presentation.slides.add_from_pdf("document2.pdf")

    presentation.save("merged-presentation.pps", slides.export.SaveFormat.PPS)

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

Follow these steps to merge two PDF files and save the combined pages as a single PPS file.

  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. Create a Presentation and remove its default blank slide.

  4. Pass each source PDF file to SlideCollection.add_from_pdf in the required order.

  5. Call Presentation.save with SaveFormat.PPS to create the merged PPS file.