# Convert POT to HTML using Java

> Convert POT to HTML in Java. Use Aspose.Slides for Java to save POT templates as HTML files.

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



## Convert POT to HTML Using Java

Use [Aspose.Slides for Java](/slides/java/) to load a `POT` template and save it as an `HTML` file. You can install the `aspose-slides` package in a Maven-based project by adding the repository and dependency below.

### Repository

```xml
<repository>
    <id>AsposeJavaAPI</id>
    <name>Aspose Java API</name>
    <url>https://releases.aspose.com/java/repo/</url>
</repository>
```

### Dependency

```xml
<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-slides</artifactId>
    <version>version of aspose-slides API</version>
    <classifier>jdk17</classifier>
</dependency>
```

## How to Convert POT to HTML via Java

 Java developers can convert a `POT` file to `HTML` in just a few lines of code.

1.  Load the `POT` file with the `Presentation` class.
1.  Call the `save` method with the output file path and `SaveFormat.Html`.
1.  The `HTML` file will be saved at the specified path.

## System Requirements

 Before running the Java conversion sample code, make sure that you have the following prerequisites.

- Microsoft Windows, Linux, macOS, or another OS with a supported Java Runtime Environment.
- Get the latest version of Aspose.Slides for Java from Maven.

### POT to HTML Java Conversion Source Code

```java
Presentation presentation = new Presentation("template.pot");
try {
    presentation.save("output.html", SaveFormat.Html);
} finally {
    presentation.dispose();
}
```

## Other Supported Conversions

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