PowerPoint to HTML conversion could be useful when you need to embed the presentations within your Android applications. You can convert each slide in the presentation into an HTML page. Accordingly, this article covers how to convert slides in PowerPoint PPTX or PPT to HTML in Android.
- PowerPoint to HTML Converter API
- Convert PowerPoint PPTX to HTML in Android
- PPT/PPTX to HTML Conversion with Hidden Slides
Android PowerPoint to HTML Converter API
For PowerPoint to HTML conversion, we will use Aspose.Slides for Android via Java. It is a feature-rich Android API for creating, modifying and converting presentation documents. You can either download the API or install it by adding the following configurations in build.gradle.
maven {
url "http://repository.aspose.com/repo/" }
compile (
group: 'com.aspose',
name: 'aspose-slides',
version: '21.3',
classifier: 'android.via.java')
Convert PowerPoint PPTX to HTML in Android
The following are the steps to convert PowerPoint PPTX or PPT files to HTML in Android.
- First, load the PowerPoint presentation you want to convert using the Presentation class.
- Create an object of HtmlOptions class.
- Convert PPTX to HTML using Presentation.save(String, int, HtmlOptions) method.
The following code sample shows how to convert a PowerPoint presentation to HTML.
Android: PPTX to HTML Conversion with Hidden Slides
PowerPoint also allows you to hide the slides within a presentation. By default, Aspose.Slides do not include hidden slides in the PowerPoint to HTML conversion. However, you can convert the hidden slides as well by following the steps below.
- Load the PPTX/PPT presentation you want to convert using the Presentation class.
- Create an object of HtmlOptions class.
- Include hidden slides using HtmlOptions.setShowHiddenSlides(true) method.
- Convert PPTX to HTML using Presentation.save(String, int, HtmlOptions) method.
The following code sample shows how to include hidden slides in PowerPoint to HTML conversion in Android.
Get a Free API License
Get a free temporary license to use Aspose.Slides for Android via Java without evaluation limitations.
Online Demo
You can also try the online PowerPoint to HTML converter, which is based on Aspose.Slides.
Conclusion
In this article, you have learned how to convert PowerPoint PPTX or PPT presentations to HTML in Android. Furthermore, you have seen how to include hidden slides in PowerPoint to HTML conversion. You can learn more about the Android presentation manipulation API using documentation. Also, you can ask your questions via our forum.