View OTP in Java
Using Aspose.Slides for Java , you can load an OTP presentation and save it as responsive HTML with a few lines of code.
Java code for viewing OTP
Presentation presentation = new Presentation("presentation.otp");
try {
ResponsiveHtmlController controller = new ResponsiveHtmlController();
HtmlOptions htmlOptions = new HtmlOptions();
htmlOptions.setHtmlFormatter(HtmlFormatter.createCustomFormatter(controller));
presentation.save("index.html", SaveFormat.Html, htmlOptions);
} finally {
presentation.dispose();
}View OTP using Aspose.Slides
Aspose.Slides for Java is a Java library for opening, viewing, editing, and converting presentation files. You can load OTP files and save them as HTML for viewing in a browser.
How to view OTP in Java
- Install Aspose.Slides for Java. See Installation.
- Add the library as a reference in your project.
- Load the
OTPfile with thePresentationclass. - Create a
ResponsiveHtmlControllerobject for responsive HTML output. - Create an
HtmlOptionsobject and set theHtmlFormatterproperty. - Save the OTP presentation as HTML with
SaveFormat.Html.
Built with Aspose.Slides
View OTP Files Online
The free Aspose.Slides Viewer app is built with Aspose.Slides for Java, the same API as the code above. Open it and see what the API can do with your own OTP files.
- Runs in your browser, nothing to install.
- See how Aspose.Slides renders your files before you write code.
- Upload your OTP file and view its slides instantly.
- Works on desktop and mobile, no PowerPoint needed.
View other files
You can also open and view presentations in other formats.