# Convert PPSM to PDF in Python

> Convert PPSM files to PDF documents in Python with Aspose.Slides for Python via Java.

Source: https://products.aspose.com/slides/python-java/conversion/ppsm-to-pdf/
Updated: 2026-07-22



## Convert PPSM to PDF in Python

[Aspose.Slides for Python via Java](/slides/python-java/) can convert a macro-enabled PowerPoint slide show (`.ppsm`) to a PDF document without Microsoft PowerPoint. PDF output is suitable for sharing, printing, and archiving because it preserves the rendered appearance of the slides across devices. Macros and interactive behavior are not included in the PDF.

For a straightforward conversion, load the source file with `Presentation` and call `save` with `SaveFormat.Pdf`. PDF export options can be supplied when the output requires settings such as image quality, compliance level, or selected slide ranges.

## How to Convert PPSM to PDF in Python

Load the source PPSM file into a `Presentation`, then save it with `SaveFormat.Pdf`.

### Python code for converting PPSM to PDF

```python
presentation = Presentation("presentation.ppsm")
try:
    presentation.save("presentation.pdf", SaveFormat.Pdf)
finally:
    presentation.dispose()
```

## Steps to Convert PPSM to PDF in Python

The conversion loads the macro-enabled PowerPoint slide show and renders its slides into a PDF document.

Install [Aspose.Slides for Python via Java](/slides/python-java/).

Configure JPype and make the Aspose.Slides package available to your Python project.

Create a `Presentation` from the source `.ppsm` file.

Call `save` with `SaveFormat.Pdf` and a `.pdf` output path.

## Convert PPSM to Other Supported Formats

- [PPSM TO PPTX](/slides/python-java/conversion/ppsm-to-pptx/)
- [PPSM TO PPT](/slides/python-java/conversion/ppsm-to-ppt/)
- [PPSM TO HTML](/slides/python-java/conversion/ppsm-to-html/)
- [PPSM TO PNG](/slides/python-java/conversion/ppsm-to-png/)
- [PPSM TO BMP](/slides/python-java/conversion/ppsm-to-bmp/)
- [PPSM TO JPG](/slides/python-java/conversion/ppsm-to-jpg/)
- [PPSM TO FODP](/slides/python-java/conversion/ppsm-to-fodp/)
- [PPSM TO GIF](/slides/python-java/conversion/ppsm-to-gif/)
- [PPSM TO ODP](/slides/python-java/conversion/ppsm-to-odp/)
- [PPSM TO OTP](/slides/python-java/conversion/ppsm-to-otp/)
- [PPSM TO POT](/slides/python-java/conversion/ppsm-to-pot/)
- [PPSM TO POTM](/slides/python-java/conversion/ppsm-to-potm/)
- [PPSM TO POTX](/slides/python-java/conversion/ppsm-to-potx/)
- [PPSM TO PPS](/slides/python-java/conversion/ppsm-to-pps/)
- [PPSM TO PPSX](/slides/python-java/conversion/ppsm-to-ppsx/)
- [PPSM TO PPTM](/slides/python-java/conversion/ppsm-to-pptm/)
- [PPSM TO SVG](/slides/python-java/conversion/ppsm-to-svg/)
- [PPSM TO TIFF](/slides/python-java/conversion/ppsm-to-tiff/)
