# Convert PDF to PPTX in Java

> Convert PDF to PPTX in Java. Use Aspose.Slides for Java to save PDF files as PPTX files.

Source: https://products.aspose.com/slides/java/conversion/pdf-to-pptx/
Updated: 2026-07-31



## Convert PDF to PPTX in Java

[**Aspose.Slides for Java**](/slides/java/) lets you import `PDF` files into a presentation and save the result as `PPTX`. With this Java API, you can convert `PDF` content without Adobe Acrobat.

## Convert PDF to PPTX using Java

To convert `PDF` to `PPTX`, create a `Presentation`, import the source file with `ISlideCollection.addFromPdf`, and save the presentation with `SaveFormat.Pptx`.

### Java code for converting PDF into PPTX

```java
Presentation presentation = new Presentation();
try {
    presentation.getSlides().addFromPdf("input.pdf");
    presentation.save("output.pptx", SaveFormat.Pptx);
} finally {
    presentation.dispose();
}
```

## How to convert PDF to PPTX using Aspose.Slides for Java API

These are the steps to convert PDF to PPTX in Java.

Install [**Aspose.Slides for Java**](/slides/java/).

Add a library reference (import the library) to your Java project.

Open the source `PDF` file in Java.

Save the result as a `PPTX` file.

## Convert PDF To Other Supported Formats
