PowerPoint to SVG Java

PowerPoint to SVG conversion is often performed to display the presentations in web or desktop 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 using Java.

Java PowerPoint to SVG Converter

In order to convert PPTX or PPT presentations to SVG, we will use Aspose.Slides for Java. The API is designed to create and manipulate PowerPoint and OpenOffice presentations from within Java applications. Furthermore, it supports the high fidelity conversion of presentations to other formats including SVG. You can either download the API or install it using the following Maven configurations.

    <name>Aspose Java API</name>

Convert PPTX or PPT Presentations to SVG in Java

The following are the steps to convert a PowerPoint PPTX/PPT presentation to SVG using Java.

  • 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 Java without evaluation limitations by requesting a temporary license.

Online Demo

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


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

See Also