# Merge PPT Files to HTML Using Python

> Merge multiple PPT files and export the combined presentation as an HTML5 document in Python.

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



## Merge PPT to HTML in Python

[**Aspose.Slides for Python via .NET**](/slides/python-net/) lets you merge PPT presentations by cloning slides from a source `Presentation` into a destination `Presentation`. The cloned slides retain their layouts, shapes, styles, text, formatting, comments, and animations. Save the destination presentation with `SaveFormat.HTML5` to create an HTML5 document.

## Merge PPT files to HTML using Python

Clone each source slide with `add_clone`, then call `save` with `SaveFormat.HTML5`.

### Python code to merge PPT files into an HTML5 document

```python
with slides.Presentation("presentation1.ppt") as destination_presentation:
    with slides.Presentation("presentation2.ppt") 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 PPT to HTML using Aspose.Slides for Python API

Follow these steps to merge two PPT files and export the result as an HTML5 document in Python.

Install [**Aspose.Slides for Python via .NET**](/slides/python-net/).

Import the `aspose.slides` package.

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

Clone each source slide by using [`add_clone`](https://reference.aspose.com/slides/python-net/aspose.slides/slidecollection/add_clone/).

Save the merged presentation as an HTML5 document by using `SaveFormat.HTML5`.

## Export PPT to Other Supported Formats
