# View POT in Java

> View POT files in Java. Use Aspose.Slides for Java to open PowerPoint template files and save them as HTML.

Source: https://products.aspose.com/slides/java/viewer/pot/
Updated: 2026-07-09



## View POT using Aspose.Slides

[**Aspose.Slides for Java**](/slides/java/) is a Java library for opening, viewing, editing, and converting presentation files. You can load POT files and save them as HTML for viewing in a browser.

## View POT in Java

Using [**Aspose.Slides for Java**](/slides/java/), you can load a POT presentation and save it as responsive HTML with a few lines of code.

### Java code for viewing POT

```java
Presentation presentation = new Presentation("presentation.pot");
try {
    ResponsiveHtmlController controller = new ResponsiveHtmlController();
    HtmlOptions htmlOptions = new HtmlOptions();
    htmlOptions.setHtmlFormatter(HtmlFormatter.createCustomFormatter(controller));

    presentation.save("index.html", SaveFormat.Html, htmlOptions);
} finally {
    presentation.dispose();
}
```

## How to view POT in Java

Install **Aspose.Slides for Java**. See [**Installation**](https://docs.aspose.com/slides/java/installation/).

Add the library as a reference in your project.

Load the `POT` file with the `Presentation` class.

Create a `ResponsiveHtmlController` object for responsive HTML output.

Create an `HtmlOptions` object and set the `HtmlFormatter` property.

Save the POT presentation as HTML with `SaveFormat.Html`.

## View other files
