# Convert POTM to PDF in Python

> Convert POTM files to PDF in Python with Aspose.Slides. Use the concise code example to automate POTM-to-PDF conversion.

Source: https://products.aspose.com/slides/python-net/conversion/potm-to-pdf/
Updated: 2026-08-11



## Convert POTM to PDF in Python

Use [*Aspose.Slides for Python via .NET*](/slides/python-net/) to convert POTM files to PDF programmatically. Load a macro-enabled PowerPoint template with `Presentation`, then call `save` with `SaveFormat.PDF`.

Aspose.Slides performs the conversion without requiring Microsoft PowerPoint. You can evaluate POTM-to-PDF output with the free [online conversion app](https://products.aspose.app/slides/conversion). The same API supports many other presentation and export formats.

Install the package from [PyPI](https://pypi.org/project/aspose-slides/) using `pip`:

### Console/Terminal

```console
pip install aspose-slides
```

## How to Convert POTM to PDF in Python

These are the steps to convert a POTM file to PDF using Python.

Load the POTM file into a `Presentation` instance.

Call the `save` method with the output file path and `SaveFormat.PDF`.

The converted PDF file is written to the specified path.

## System Requirements

Before running the Python conversion example, make sure your environment meets these requirements.

- Windows, 64-bit Linux, or macOS (see the [system requirements](https://docs.aspose.com/slides/python-net/system-requirements/))
- Python 3.5 or later
- Aspose.Slides for Python via .NET installed in your environment

### Python code to convert POTM to PDF

```python
with slides.Presentation("presentation.potm") as presentation:
    presentation.save("presentation.pdf", slides.export.SaveFormat.PDF)
```

## Save POTM as PDF in Python

Try the free [online conversion app](https://products.aspose.app/slides/conversion) to see the POTM-to-PDF conversion process.

## Other Supported Conversions

- [POTM TO BMP](/slides/python-net/conversion/potm-to-bmp/) — Bitmap Image
- [POTM TO EMF](/slides/python-net/conversion/potm-to-emf/) — Enhanced Metafile Format
- [POTM TO FODP](/slides/python-net/conversion/potm-to-fodp/) — OpenDocument Flat XML Presentation
- [POTM TO GIF](/slides/python-net/conversion/potm-to-gif/) — Graphics Interchange Format
- [POTM TO HTML](/slides/python-net/conversion/potm-to-html/) — Hypertext Markup Language
- [POTM TO JPG](/slides/python-net/conversion/potm-to-jpg/) — JPEG Image
- [POTM TO ODP](/slides/python-net/conversion/potm-to-odp/) — OpenDocument Presentation
- [POTM TO OTP](/slides/python-net/conversion/potm-to-otp/) — OpenDocument Presentation Template
- [POTM TO PNG](/slides/python-net/conversion/potm-to-png/) — Portable Network Graphics
- [POTM TO POT](/slides/python-net/conversion/potm-to-pot/) — PowerPoint 97-2003 Template
- [POTM TO POTX](/slides/python-net/conversion/potm-to-potx/) — PowerPoint Open XML Template
- [POTM TO PPS](/slides/python-net/conversion/potm-to-pps/) — PowerPoint Slide Show
- [POTM TO PPSM](/slides/python-net/conversion/potm-to-ppsm/) — Macro-enabled Slide Show
- [POTM TO PPSX](/slides/python-net/conversion/potm-to-ppsx/) — PowerPoint Open XML Slide Show
- [POTM TO PPT](/slides/python-net/conversion/potm-to-ppt/) — PowerPoint 97-2003 Presentation
- [POTM TO PPTM](/slides/python-net/conversion/potm-to-pptm/) — Macro-enabled Presentation
- [POTM TO PPTX](/slides/python-net/conversion/potm-to-pptx/) — PowerPoint Open XML Presentation
- [POTM TO SVG](/slides/python-net/conversion/potm-to-svg/) — Scalable Vector Graphics
- [POTM TO SWF](/slides/python-net/conversion/potm-to-swf/) — Shockwave Flash File
- [POTM TO TIFF](/slides/python-net/conversion/potm-to-tiff/) — Tagged Image File Format
- [POTM TO XPS](/slides/python-net/conversion/potm-to-xps/) — XML Paper Specification
