# Convert PPSM to EMF in Python

> Convert PPSM slide shows to EMF images in Python. Use the Aspose.Slides Python API to export each slide as a separate EMF file.

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



## Convert PPSM to EMF in Python

[*Aspose.Slides for Python via .NET*](/slides/python-net/) lets you convert PPSM slide shows to EMF images programmatically. Load the slide show and export each slide by using `Slide.write_as_emf`.

EMF is a vector image format, so slide graphics remain scalable in compatible applications. You can use the Python API to process slide shows without Microsoft PowerPoint.

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 PPSM to EMF in Python

These are the steps to convert a PPSM file to EMF using Python.

Load the PPSM file into a `Presentation` instance.

Iterate through `Presentation.slides` and open a binary output stream for each slide.

Call `Slide.write_as_emf` to write each slide to its EMF 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.6 or later for this sample.
- Aspose.Slides for Python via .NET installed in your environment.

### This sample code shows how to convert PPSM to EMF in Python

```python
with slides.Presentation("presentation.ppsm") as presentation:
    for slide in presentation.slides:
        file_path = f"presentation_slide_{slide.slide_number}.emf"
        with open(file_path, "wb") as output_stream:
            slide.write_as_emf(output_stream)
```

## Save PPSM as EMF in Python

Use the code sample above to export every slide in a PPSM slide show as a separate EMF file.

## Other Supported Conversions

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