Merge PPS files and save as POTM in Python
Combine PPS presentations and save the merged slides as a macro-enabled PowerPoint template with Aspose.Slides for Python via .NET. Microsoft PowerPoint is not required.
Merge PPS to POTM 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 slide content and formatting, including shapes, text, styles, comments, and animations. After merging the slides, call Presentation.save with SaveFormat.POTM to create a macro-enabled PowerPoint template.
Merge PPS files to POTM 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 POTM format.
Python code to merge PPS files and save as POTM
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.potm", slides.export.SaveFormat.POTM)
How to merge PPS files and save as POTM with Aspose.Slides for Python
Follow these steps to merge two PPS files and save the result as a POTM template in Python.
Install Aspose.Slides for Python via .NET with
pip install aspose-slides.Make the
aspose.slidesnamespace available asslidesin your Python project.Load the first PPS file into a destination
Presentationinstance and the second PPS file into a sourcePresentationinstance.Iterate through the source
Presentation.slidescollection and callSlideCollection.add_clonefor eachSlide.Call
Presentation.savewithSaveFormat.POTMto save the merged presentation as a POTM file.
Export PPS to Other Supported Formats
You can also combine PPS presentations and export the merged result to other supported formats.