Merge PPSX Files into PPTM in Python
Combine PowerPoint Open XML slide shows and save the merged slides as a PPTM presentation with a cross-platform Python API
Merge PPSX to PPTM in Python
Aspose.Slides for Python via .NET
lets you merge PowerPoint Open XML Slide Show (PPSX) files by cloning slides from one presentation into another. After combining the slides with SlideCollection.add_clone, call Presentation.save with SaveFormat.PPTM to save the merged slides as a macro-enabled PowerPoint presentation.
Merge PPSX files to PPTM using Python
Open the destination and source PPSX presentations, append a clone of each source slide, and save the merged presentation as a PPTM file.
Python code for merging PPSX files into a single PPTM presentation
with slides.Presentation("destination.ppsx") as destination_presentation:
with slides.Presentation("source.ppsx") as source_presentation:
for slide in source_presentation.slides:
destination_presentation.slides.add_clone(slide)
destination_presentation.save("merged-presentation.pptm", slides.export.SaveFormat.PPTM)
How to merge PPSX files into PPTM with Aspose.Slides for Python
Follow these steps to merge two PPSX files and save the result as a single PPTM presentation.
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 PPSX files as
Presentationinstances.Iterate through the source slides and call
SlideCollection.add_clonefor each slide.Call
Presentation.savewithSaveFormat.PPTMto save the merged slides as a single PPTM presentation.
Export PPSX to Other Supported Formats
You can also combine PPSX presentations and save them in other supported formats.