# Convert ODP to HTML using Java

> Convert ODP to HTML in Java. Use Aspose.Slides for Java to save ODP presentations as HTML files.

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



## Convert ODP to HTML Using Java

Use [Aspose.Slides for Java](/slides/java/) to load an `ODP` presentation 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 ODP to HTML via Java

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

1.  Load the `ODP` 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.

### ODP to HTML Java Conversion Source Code

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

## Other Supported Conversions

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