# Convert OTP to PPT in PHP

> Convert OTP presentations to PowerPoint 97-2003 presentation (PPT) files in PHP with Aspose.Slides for PHP via Java.

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



## Convert OTP to PPT in PHP

Use [*Aspose.Slides for PHP via Java*](/slides/php-java/) to load an OTP presentation and save it as a PowerPoint 97-2003 presentation (PPT) file.

Call `save` with `SaveFormat::Ppt` 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 PPT in PHP

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

Load the OTP file with the `Presentation` class.

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

The PPT 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 PPT conversion in PHP

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

## Save OTP as PPT in PHP

Use the free app to see a demonstration of the OTP to PPT 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 PPSM](/slides/php-java/conversion/otp-to-ppsm/) — PowerPoint Macro-Enabled Slide Show
- [OTP TO PPSX](/slides/php-java/conversion/otp-to-ppsx/) — PowerPoint Open XML Slide Show
- [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
