Merge PPSM Files and Export to HTML in Python
Combine PowerPoint Macro-Enabled Slide Show files and export the merged slides to HTML5 with Aspose.Slides for Python via .NET. Microsoft PowerPoint is not required.
Merge PPSM to HTML in Python
Aspose.Slides for Python via .NET
lets you combine multiple PPSM presentations by cloning slides from one Presentation into another. The SlideCollection.add_clone method preserves the content and formatting of each cloned slide. After merging the slides, call Presentation.save with SaveFormat.HTML5 to export the destination Presentation as an HTML5 document.
Merge PPSM Files to HTML Using Python
Load one PPSM file as the destination presentation, clone the slides from another PPSM file into it, and export the merged result to HTML5.
Python code to merge PPSM files and export to HTML
with slides.Presentation("destination.ppsm") as destination_presentation:
with slides.Presentation("source.ppsm") as source_presentation:
for source_slide in source_presentation.slides:
destination_presentation.slides.add_clone(source_slide)
destination_presentation.save("merged_presentation.html", slides.export.SaveFormat.HTML5)
How to Merge PPSM Files and Export to HTML with Aspose.Slides for Python
Follow these steps to merge two PPSM files and export the result to HTML in Python.
Install Aspose.Slides for Python via .NET with
pip install aspose-slides.Make the
aspose.slidesnamespace available in your Python project.Open the destination and source PPSM files as
Presentationinstances.Iterate through the source slides and call
SlideCollection.add_clonefor eachSlide.Call
Presentation.savewithSaveFormat.HTML5to export the merged presentation as an HTML5 document.
Export PPSM to Other Supported Formats
You can also combine PPSM presentations and export the merged result to other supported formats.