Merge PPTX Files into PPS in Python
Combine PowerPoint presentations and save the result as a PPS slide show with a fast, cross-platform Python API. Microsoft PowerPoint is not required.
Merge PPTX to PPS in Python
Aspose.Slides for Python via .NET
is a Python library for creating, editing, and converting presentation files. To merge PPTX presentations, clone each slide from a source Presentation into a destination presentation by calling
add_clone
on its slides collection. Cloned slides retain their shapes, styles, text, formatting, comments, and animations. The combined presentation can then be saved as a PPS slide show.
Merge PPTX files to PPS using Python
Clone each slide from the source presentation into the destination presentation, then save the combined presentation in PPS format.
Python code to merge multiple PPTX files into one PPS file
with slides.Presentation("presentation1.pptx") as destination_presentation:
with slides.Presentation("presentation2.pptx") as source_presentation:
for slide in source_presentation.slides:
destination_presentation.slides.add_clone(slide)
destination_presentation.save("merged.pps", slides.export.SaveFormat.PPS)
How to merge PPTX to PPS using Aspose.Slides for Python API
Follow these steps to merge two PPTX files and save the result as PPS in Python.
Install Aspose.Slides for Python via .NET with
pip install aspose-slides.Load the first
PPTXfile into the destinationPresentation, and load the secondPPTXfile into the sourcePresentation.Iterate through the source presentation’s
slidescollection.Clone each source
Slideinto the destination presentation by callingadd_clone.Call
Presentation.savewithSaveFormat.PPSto write the merged presentation to aPPSfile.
Export PPTX to Other Supported Formats
You can also combine PPTX presentations and save the result in other supported formats.