# Convert POTX to PDF in Python

> Convert POTX presentation templates to PDF documents in Python. Use the Aspose.Slides Python API to export templates as fixed-layout PDF files.

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



## Convert POTX to PDF in Python

[*Aspose.Slides for Python via .NET*](/slides/python-net/) lets you convert POTX presentation templates to PDF documents programmatically. Load the POTX file into a `Presentation` instance and export it by using `Presentation.save` with `SaveFormat.PDF`.

PDF provides fixed-layout output that is convenient for sharing, printing, and archiving presentations. You can test the conversion in your [browser](https://products.aspose.app/slides/conversion) or use the Python API in your application.

Install the library from [PyPI](https://pypi.org/project/aspose-slides/) by using the following command:

### Console/Terminal

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

## How to Convert POTX to PDF in Python

Follow these steps to convert a POTX file to PDF using Python.

Load the POTX file into a `Presentation` instance.

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

The presentation is written to the specified PDF file.

## System Requirements

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

- Microsoft Windows, macOS, or 64-bit Linux (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.

### This sample code shows how to convert POTX to PDF in Python

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

## Save POTX as PDF in Python

Use the [free online app](https://products.aspose.app/slides/conversion) to see the POTX-to-PDF conversion process in action.

## Other Supported Conversions

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