Merge PPTM Files and Save as PPSX in Python
Combine macro-enabled PowerPoint presentations and save the merged slides as a PPSX slide show with a cross-platform Python API
Merge PPTM to PPSX in Python
Aspose.Slides for Python via .NET
lets you merge macro-enabled PowerPoint (PPTM) presentations by cloning slides from one presentation into another. After combining the slides with SlideCollection.add_clone, call Presentation.save with SaveFormat.PPSX to write the merged presentation as a PowerPoint Open XML slide show.
Merge PPTM files to PPSX using Python
Open the destination and source PPTM presentations, append a clone of each source slide, and save the merged presentation as a single PPSX file.
Python code for merging PPTM files into a single PPSX slide show
with slides.Presentation("destination.pptm") as destination_presentation:
with slides.Presentation("source.pptm") as source_presentation:
for slide in source_presentation.slides:
destination_presentation.slides.add_clone(slide)
destination_presentation.save("merged-presentation.ppsx", slides.export.SaveFormat.PPSX)
How to merge PPTM files and save as PPSX with Aspose.Slides for Python
Follow these steps to merge two PPTM files and save the result as a single PPSX slide show.
Install Aspose.Slides for Python via .NET by following the installation guide .
Make the
aspose.slidesnamespace available in your Python project.Open the destination and source PPTM files as
Presentationinstances.Iterate through the source slides and call
SlideCollection.add_clonefor each slide.Call
Presentation.savewithSaveFormat.PPSXto write the merged presentation as a single PPSX file.
Export PPTM to Other Supported Formats
You can also combine PPTM presentations and save them in other supported formats.