# Merge PPTX Files and Export to HTML Using Python

> Merge multiple PPTX presentations in Python and export the result as an HTML5 document.

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



## Merge PPTX to HTML in Python

[*Aspose.Slides for Python via .NET*](/slides/python-net/) lets you merge PowerPoint PPTX files by cloning slides from one presentation into another. After combining the slides with `SlideCollection.add_clone`, call `Presentation.save` with `SaveFormat.HTML5` to export the merged presentation as an HTML5 document.

## Merge PPTX files to HTML using Python

Open the destination and source PPTX presentations, append a clone of each source slide, and save the merged presentation as HTML5.

### Python code for merging PPTX files into an HTML5 document

```python
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.html", slides.export.SaveFormat.HTML5)
```

## How to merge PPTX files and export to HTML with Aspose.Slides for Python

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

Install the `aspose-slides` package by following the [Aspose.Slides for Python via .NET installation guide](https://docs.aspose.com/slides/python-net/installation/).

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

Open the destination and source PPTX 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 write the merged presentation as an HTML5 document.

## Export PPTX to Other Supported Formats
