Merge PPTM files and export to HTML in Python
Combine macro-enabled PowerPoint presentations and export the merged slides as an HTML5 document with Aspose.Slides for Python via .NET. Microsoft PowerPoint and OpenOffice are not required.
Merge PPTM to HTML in Python
Aspose.Slides for Python via .NET
lets you merge PPTM presentations by cloning slides from a source Presentation into a destination Presentation. After combining the slides with SlideCollection.add_clone, call Presentation.save with SaveFormat.HTML5 to create an HTML5 document.
Merge PPTM files to HTML using Python
Clone each source slide with SlideCollection.add_clone, then call Presentation.save with SaveFormat.HTML5.
Python code to merge PPTM files into an HTML5 document
with slides.Presentation("presentation1.pptm") as destination_presentation:
with slides.Presentation("presentation2.pptm") as source_presentation:
for slide in source_presentation.slides:
destination_presentation.slides.add_clone(slide)
destination_presentation.save("merged_presentation.html", slides.export.SaveFormat.HTML5)
How to merge PPTM to HTML using Aspose.Slides for Python API
Follow these steps to merge two PPTM files and export the result as an HTML5 document in Python.
Install Aspose.Slides for Python via .NET .
Import the
aspose.slidespackage.Open the destination and source PPTM files as
Presentationinstances.Clone each source slide by using
SlideCollection.add_clone.Save the merged presentation with
Presentation.saveandSaveFormat.HTML5.
Export PPTM to Other Supported Formats
You can also merge PPTM files and export the result to other supported formats.