PPT to PPTX Java

PowerPoint PPTX is an advanced version of PPT that is based on XML. With the support of XML, it becomes easier for other types of programs to open PowerPoint presentations. To get the benefit of the latest features offered by PPTX, you may need to convert PPT files to PPTX. For such cases, this article covers how to convert PowerPoint PPT to PPTX in Java.

PowerPoint PPT to PPTX Java Converter

To perform PPT to PPTX conversion, we’ll use Aspose.Slides for Java. It is a feature-rich API that lets you create or modify presentation documents quite easily. In addition, it allows you to convert the PPT/PPTX presentations to other file formats. You can either download the API or install it using the following Maven configurations.

<repository>
    <id>AsposeJavaAPI</id>
    <name>Aspose Java API</name>
    <url>http://repository.aspose.com/repo/</url>
</repository>
<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-slides</artifactId>
    <version>23.5</version>
    <classifier>jdk16</classifier>
</dependency>

Convert PowerPoint PPT to PPTX in Java

It is an easy task to perform PPT to PPTX conversion using Aspose.Slides for Java. The following are the steps to save a PPT file as PPTX in Java.

  • Load the PPT file from disk.
  • Save PPT as PPTX to desired location.

Let’s now have a look at how to convert a PPT file to PPTX programmatically in Java.

Java Code to Convert PPT to PPTX

The following are the steps to convert a PowerPoint PPT to PPTX in Java.

  1. Load the PowerPoint PPT presentation using Presentation class.
  2. Convert PPT to PPTX using Presentation.save(String, SaveFormat.Pptx) method.

The following code sample shows how to convert a PPT file to PPTX.

Get Free PPT to PPTX Java Converter

You can use Aspose.Slides for Java and convert PPT to PPTX without evaluation limitations by getting a free temporary license.

Convert PPT to PPTX Online

We also provide a free web-based PPT to PPTX converter that you can access from your browser. This PPT to PPTX converter is completely free and you do not need to create an account or provide any other information.

Conclusion

In this article, you have learned how to convert a PowerPoint PPT to PPTX in Java. You can easily integrate the provided code in your applications for single or batch conversion of PPT to PPTX.

You can visit the documentation to explore other features of Aspose.Slides for Java. Also, you can feel free to let us know about your queries via our forum.

See Also