# Convert OTP to PPSM in PHP

> Convert OTP presentations to PowerPoint macro-enabled slide show (PPSM) files in PHP with Aspose.Slides for PHP via Java.

Source: https://products.aspose.com/slides/php-java/conversion/otp-to-ppsm/
Updated: 2026-08-11



## Convert OTP to PPSM in PHP

Use [*Aspose.Slides for PHP via Java*](/slides/php-java/) to load an OTP presentation and save it as a PowerPoint macro-enabled slide show (PPSM) file.

Call `save` with `SaveFormat::Ppsm` to create the output file. You can also test OTP conversion in your [browser](https://products.aspose.app/slides/conversion).

You can install the library from [Composer](https://packagist.org/packages/aspose/slides) using the following command:

### Console/Terminal

```console
composer require aspose/slides
```

## How to Convert OTP to PPSM in PHP

These are the steps to convert an OTP file to PPSM using PHP.

Load the OTP file with the `Presentation` class.

Call `save` with the output file path and `SaveFormat::Ppsm`.

The PPSM file is written to the specified path.

## System Requirements

Before running the PHP conversion example, make sure that you have the following prerequisites.

1. Install PHP 7 or later, add the PHP directory to the system `PATH`, and set `allow_url_include` to `On` in the `php.ini` file.
1. Install JRE 8 and set the `JAVA_HOME` environment variable to the installed JRE directory.
1. Install and configure Apache Tomcat with PHP/Java Bridge as described in the [installation guide](https://docs.aspose.com/slides/php-java/installation/).

### This sample code shows OTP to PPSM conversion in PHP

```php
$presentation = new Presentation("input.otp");
try {
    $presentation->save("output.ppsm", SaveFormat::Ppsm);
} finally {
    $presentation->dispose();
}
```

## Save OTP as PPSM in PHP

Use the free app to see a demonstration of the OTP to PPSM conversion process.

## Other Supported Conversions

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