Merge PPTX Files and Save as PPT in Python
Combine PowerPoint presentations and save the merged slides as a PPT file with a cross-platform Python API
Merge PPTX to PPT in Python
Aspose.Slides for Python via .NET
lets you merge PowerPoint Open XML Presentation (PPTX) files by cloning slides from one presentation into another. After combining the slides with SlideCollection.add_clone, call Presentation.save with SaveFormat.PPT to write the merged presentation in the PowerPoint 97–2003 Presentation format.
Merge PPTX files to PPT using Python
Open the destination and source PPTX presentations, append a clone of each source slide, and save the merged presentation as a single PPT file.
Python code for merging PPTX files into a single PPT presentation
with slides.Presentation("destination.pptx") as destination_presentation:
with slides.Presentation("source.pptx") as source_presentation:
for slide in source_presentation.slides:
destination_presentation.slides.add_clone(slide)
destination_presentation.save("merged-presentation.ppt", slides.export.SaveFormat.PPT)
How to merge PPTX files and save as PPT with Aspose.Slides for Python
Follow these steps to merge two PPTX files and save the result as a single PPT 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
PPTXfiles asPresentationinstances.Iterate through the source slides and call
SlideCollection.add_clonefor each slide.Call
Presentation.savewithSaveFormat.PPTto write the merged presentation as a singlePPTfile.
Export PPTX to Other Supported Formats
You can also combine PPTX presentations and save them in other supported formats.