# Convert POTM to HTML in Python

> Convert POTM files to HTML documents in Python with Aspose.Slides for Python via Java.

Source: https://products.aspose.com/slides/python-java/conversion/potm-to-html/
Updated: 2026-07-21



## Convert POTM to HTML in Python

[**Aspose.Slides for Python via Java**](/slides/python-java/) can load a macro-enabled POTM file and export its slides and visual content to HTML. The generated document can be opened in a web browser; macros and interactive VBA behavior are not included. Microsoft PowerPoint is not required.

## Convert POTM to HTML using Python

Create a `Presentation` from the POTM file and call `save` with `SaveFormat.Html` to generate an HTML document.

### Python code for converting POTM to HTML

```python
presentation = Presentation("presentation.potm")
try:
    presentation.save("presentation.html", SaveFormat.Html)
finally:
    presentation.dispose()
```

## How to convert POTM to HTML in Python

Follow these steps to export a POTM file as an HTML document.

Install [**Aspose.Slides for Python via Java**](https://docs.aspose.com/slides/python-java/installation/).

Configure the package and start the Java Virtual Machine in your application.

Open the source POTM file with `Presentation`.

Call `save` with `SaveFormat.Html` to write the HTML document.

## Convert POTM to Other Supported Formats
