# Merge PPSM Files to HTML with Python

> Merge multiple PPSM presentations and export the combined slides to an HTML5 file in Python.

Source: https://products.aspose.com/slides/python-net/merge/ppsm-to-html/
Updated: 2026-07-28



## Merge PPSM to HTML in Python

[**Aspose.Slides for Python via .NET**](/slides/python-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

```python
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**](/slides/python-net/) with `pip install aspose-slides`.

Make the `aspose.slides` namespace available in your Python project.

Open the destination and source PPSM files as `Presentation` instances.

Iterate through the source slides and call [`SlideCollection.add_clone`](https://reference.aspose.com/slides/python-net/aspose.slides/slidecollection/add_clone/) for each `Slide`.

Call `Presentation.save` with `SaveFormat.HTML5` to export the merged presentation as an HTML5 document.

## Export PPSM to Other Supported Formats
