View PPSX in Java

Java API for opening PPSX files and saving them as HTML.

View PPSX using Aspose.Slides

Aspose.Slides for Java is a Java library for opening, viewing, editing, and converting presentation files. You can load PPSX files and save them as HTML for viewing in a browser.

View PPSX in Java

Using Aspose.Slides for Java , you can load a PPSX presentation and save it as responsive HTML with a few lines of code.

Java code for viewing PPSX

Presentation presentation = new Presentation("presentation.ppsx");
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 PPSX in Java

  1. Install Aspose.Slides for Java. See Installation .

  2. Add the library as a reference in your project.

  3. Load the PPSX file with the Presentation class.

  4. Create a ResponsiveHtmlController object for responsive HTML output.

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

  6. Save the PPSX presentation as HTML with SaveFormat.Html.