# Convert POT to POTX in PHP

> Convert a PowerPoint POT template to a macro-free POTX template in PHP with Aspose.Slides for PHP via Java.

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



## Convert POT to POTX in PHP

Use [*Aspose.Slides for PHP via Java*](/slides/php-java/) to load a PowerPoint 97–2003 POT template and save it in the PowerPoint Open XML POTX template format.

Call `save` with `SaveFormat::Potx` to create the POTX file. POTX is a macro-free format, so use POTM when the output must support VBA projects.

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 POT to POTX in PHP

These are the steps to convert a POT file to POTX using PHP.

Load the POT file with the `Presentation` class.

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

The POTX 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 POT to POTX PHP Conversion

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

## Save POT as POTX in PHP

Use the free Conversion app to test POT conversion in your browser.

## Other Supported Conversions

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