# Convert POT to HTML in PHP

> Convert a PowerPoint POT template to HTML5 in PHP with Aspose.Slides for PHP via Java.

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



## Convert POT to HTML in PHP

Use [*Aspose.Slides for PHP via Java*](/slides/php-java/) to load a PowerPoint 97–2003 POT template and export its slides as HTML5.

Call `save` with `SaveFormat::Html5` to create an HTML document that represents the presentation for viewing in a web browser.

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 HTML in PHP

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

Load the POT file with the `Presentation` class.

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

The HTML 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 HTML PHP Conversion

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

## Save POT as HTML 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 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 POTX](/slides/php-java/conversion/pot-to-potx/) — PowerPoint Open XML 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
