DOCX JPG PDF XML PPT
  Product Family
SVG

Convert PPT to SVG in Java

Export PPT slides as SVG files using Aspose.Slides for Java without Microsoft PowerPoint.

Convert PPT to SVG Using Java

Use Aspose.Slides for Java to load a PPT presentation and export a slide as an SVG file. You can install the aspose-slides package in a Maven-based project by adding the repository and dependency below.

Repository

<repository>
    <id>AsposeJavaAPI</id>
    <name>Aspose Java API</name>
    <url>https://releases.aspose.com/java/repo/</url>
</repository>

Dependency

<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-slides</artifactId>
    <version>version of aspose-slides API</version>
    <classifier>jdk17</classifier>
</dependency>

How to Convert PPT to SVG via Java

Java developers can export a PPT slide to SVG in just a few lines of code.

  1. Load the PPT file with the Presentation class.
  2. Get the target ISlide from the presentation.
  3. Call the writeAsSvg method with a FileOutputStream.
  4. The SVG file will be saved at the specified path.

System Requirements

Before running the Java conversion sample code, make sure that you have the following prerequisites.

  • Microsoft Windows, Linux, macOS, or another OS with a supported Java Runtime Environment.
  • Get the latest version of Aspose.Slides for Java from Maven.
 

PPT to SVG Java Conversion Source Code

Presentation presentation = new Presentation("presentation.ppt");
try {
    ISlide slide = presentation.getSlides().get_Item(0);

    FileOutputStream outputStream = new FileOutputStream("output.svg");
    try {
        slide.writeAsSvg(outputStream);
    } finally {
        outputStream.close();
    }
} finally {
    presentation.dispose();
}
 
  • Free App to Convert PPT to SVG

    Convert presentations and slides online.

    Other Supported Conversions

    You can also convert PPT into many other file formats including the ones listed below.

    PPT TO BMP (Bitmap Image)
    PPT TO GIF (Graphical Interchange Format)
    PPT TO HTML (Hyper Text Markup Language)
    PPT TO JPEG (JPEG Image)
    PPT TO ODP (OpenDocument Presentation Format)
    PPT TO OTP (OpenDocument Standard Format)
    PPT TO PDF (Portable Document Format)
    PPT TO PNG (Portable Network Graphics)
    PPT TO POT (Microsoft PowerPoint Template Files)
    PPT TO POTM (Microsoft PowerPoint Template File)
    PPT TO POTX (Microsoft PowerPoint Template Presentation)
    PPT TO PPS (PowerPoint Slide Show)
    PPT TO PPSM (Macro-enabled Slide Show)
    PPT TO PPSX (PowerPoint Slide Show)
    PPT TO PPTM (Macro-enabled Presentation File)
    PPT TO PPTX (Open XML Presentation Format)
    PPT TO SWF (SWF Format)
    PPT TO TIFF (Tagged Image Format)
    PPT TO VIDEO (Video File)
    PPT TO WORD (Microsoft Word Document)
    PPT TO XPS (XML Paper Specifications)