Convert PowerPoint PPTX/PPT to SVG in Android

PowerPoint to SVG Android

PowerPoint to SVG conversion is often performed to display the presentations in Android applications. Various PowerPoint viewers also convert the presentations to SVG for slideshow. Accordingly, this article covers how to convert PowerPoint PPTX or PPT presentations to SVG files in Android.

Android PowerPoint to SVG Converter

In order to convert PPTX or PPT presentations to SVG, we will use Aspose.Slides for Android via Java. It is a feature-rich Android API that lets you create, modify and convert presentations seamlessly. You can either download the API from the downloads section 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 PPTX or PPT Presentations to SVG in Android

The following are the steps to convert a PowerPoint PPTX/PPT presentation to SVG in Android.

  • First, create an instance of Presentation class to load the presentation.
  • Loop through the slides in presentation and get reference of each slide in ISlide object.
  • Create a FileOutputStream object for the output SVG file.
  • Write slide data to the FileOutputStream object using ISlide.writeAsSvg() method.
  • Finally, close the stream.

The following code sample shows how to convert PowerPoint PPTX/PPT to SVG.

Get a Free API License

You can use Aspose.Slides for Android via Java without evaluation limitations by requesting a temporary license.

Online Demo

Try the online PowerPoint to SVG converter, which is based on Aspose.Slides.

Conclusion

The PowerPoint presentations are often converted to SVG to embed their content in the applications. For such cases, this article covered PowerPoint to SVG conversion in Android apps. You can visit the documentation to explore other features of Aspose.Slides for Android via Java. Furthermore, you can feel free to let us know about your queries via our forum.

See Also