# Convert ODP to PPTX in PHP

> Convert ODP presentations to PowerPoint PPTX files in PHP with Aspose.Slides for PHP via Java.

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



## Convert ODP to PPTX in PHP

Use [*Aspose.Slides for PHP via Java*](/slides/php-java/) to load an ODP presentation and export it as a PowerPoint Open XML PPTX file.

Call `save` with `SaveFormat::Pptx` to create the output file. You can also test ODP 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 ODP to PPTX in PHP

These are the steps to convert an ODP file to PPTX using PHP.

Load the ODP file with the `Presentation` class.

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

The PPTX 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 ODP to PPTX PHP Conversion

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

## Save ODP as PPTX in PHP

Use the free app to see a demonstration of the ODP-to-PPTX conversion process.

## Other Supported Conversions

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