# Convert PDF to POT in PHP

> Convert PDF documents to PowerPoint 97-2003 POT templates in PHP with Aspose.Slides for PHP via Java.

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



## Convert PDF to POT in PHP

Use [*Aspose.Slides for PHP via Java*](/slides/php-java/) to import the pages of a PDF document as slides and save the result as a PowerPoint 97-2003 template (POT).

Call `addFromPdf` to import the PDF pages, then call `save` with `SaveFormat::Pot` to create the template. You can also test PDF 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 PDF to POT in PHP

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

Create a `Presentation` and remove its default slide.

Import the PDF pages with `addFromPdf`.

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

## 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 8.0 with PHP/Java Bridge as described in the [installation guide](https://docs.aspose.com/slides/php-java/installation/).

### This sample code shows PDF to POT PHP Conversion

```php
$presentation = new Presentation();
try {
    $presentation->getSlides()->removeAt(0);
    $presentation->getSlides()->addFromPdf("document.pdf");
    $presentation->save("output.pot", SaveFormat::Pot);
} finally {
    $presentation->dispose();
}
```

## Save PDF as POT in PHP

Use the free app to see a demonstration of the PDF-to-POT conversion process.

## Other Supported Conversions

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