Convert PowerPoint to HTML in Java

This article shows you how to convert PowerPoint documents to HTML format files using Spire.Presentation for Java.

Here is a screenshot of the sample PowerPoint document.

Convert PowerPoint to HTML in Java

import com.spire.presentation.FileFormat;
import com.spire.presentation.Presentation;

public class ToHtml {
    public static void main(String[] args) throws Exception {

        //Create a Presentation object 
        Presentation presentation = new Presentation();

        //Load the sample document 

        //Save the document to HTML format 
        presentation.saveToFile("C:\\Users\\Administrator\\Desktop\\ToHtml.html", FileFormat.HTML);


Convert PowerPoint to HTML in Java