# Convert PPT to PDF using Java

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

Source: https://products.aspose.com/slides/java/conversion/ppt-to-pdf/
Updated: 2026-08-11



## Convert PPT to PDF Using Java

Use [Aspose.Slides for Java](/slides/java/) to load a `PPT` presentation and save it as a `PDF` file. You can install the `aspose-slides` package in a Maven-based project by adding the repository and dependency below.

### Repository

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

### Dependency

```xml
<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 PDF via Java

Java developers can convert a `PPT` file to `PDF` in just a few lines of code.

1.  Load the `PPT` file with the `Presentation` class.
1.  Call the `save` method with the output file path and `SaveFormat.Pdf`.
1.  The `PDF` 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 PDF Java Conversion Source Code

```java
Presentation presentation = new Presentation("presentation.ppt");
try {
    presentation.save("output.pdf", SaveFormat.Pdf);
} finally {
    presentation.dispose();
}
```

## Other Supported Conversions

- [PPT TO BMP](/slides/java/conversion/ppt-to-bmp/) — Bitmap Image
- [PPT TO GIF](/slides/java/conversion/ppt-to-gif/) — Graphics Interchange Format
- [PPT TO HTML](/slides/java/conversion/ppt-to-html/) — Hypertext Markup Language
- [PPT TO JPEG](/slides/java/conversion/ppt-to-jpeg/) — JPEG Image
- [PPT TO ODP](/slides/java/conversion/ppt-to-odp/) — OpenDocument Presentation Format
- [PPT TO OTP](/slides/java/conversion/ppt-to-otp/) — OpenDocument Presentation Template
- [PPT TO PNG](/slides/java/conversion/ppt-to-png/) — Portable Network Graphics
- [PPT TO POT](/slides/java/conversion/ppt-to-pot/) — PowerPoint 97–2003 Template
- [PPT TO POTM](/slides/java/conversion/ppt-to-potm/) — PowerPoint Macro-Enabled Template
- [PPT TO POTX](/slides/java/conversion/ppt-to-potx/) — PowerPoint Template
- [PPT TO PPS](/slides/java/conversion/ppt-to-pps/) — PowerPoint Slide Show
- [PPT TO PPSM](/slides/java/conversion/ppt-to-ppsm/) — Macro-enabled Slide Show
- [PPT TO PPSX](/slides/java/conversion/ppt-to-ppsx/) — PowerPoint Slide Show
- [PPT TO PPTM](/slides/java/conversion/ppt-to-pptm/) — Macro-enabled Presentation File
- [PPT TO PPTX](/slides/java/conversion/ppt-to-pptx/) — Open XML Presentation Format
- [PPT TO SVG](/slides/java/conversion/ppt-to-svg/) — Scalable Vector Graphics
- [PPT TO SWF](/slides/java/conversion/ppt-to-swf/) — SWF Format
- [PPT TO TIFF](/slides/java/conversion/ppt-to-tiff/) — Tagged Image File Format
- [PPT TO Video](/slides/java/conversion/ppt-to-video/) — Video File
- [PPT TO Word](/slides/java/conversion/ppt-to-word/) — Microsoft Word Document
- [PPT TO XPS](/slides/java/conversion/ppt-to-xps/) — XML Paper Specification
