View PPTX in Java
Java API for opening PPTX files and saving them as HTML.
View PPTX using Aspose.Slides
Aspose.Slides for Java is a Java library for opening, viewing, editing, and converting presentation files. You can load PPTX files and save them as HTML for viewing in a browser.
View PPTX in Java
Using Aspose.Slides for Java , you can load a PPTX presentation and save it as responsive HTML with a few lines of code.
Java code for viewing PPTX
Presentation presentation = new Presentation("presentation.pptx");
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 PPTX in Java
Install Aspose.Slides for Java. See Installation .
Add the library as a reference in your project.
Load the
PPTXfile with thePresentationclass.Create a
ResponsiveHtmlControllerobject for responsive HTML output.Create an
HtmlOptionsobject and set theHtmlFormatterproperty.Save the PPTX presentation as HTML with
SaveFormat.Html.
View other files
You can also open and view presentations in other formats.