Getting Started
This section covers everything you need to set up Aspose.Slides FOSS for Java and write your first presentation.
In This Section
| Page | Description |
|---|---|
| Installation | Add aspose-slides-foss via Maven or Gradle, verify the installation, and run a quick start program. |
| License | MIT License details: free for any use, no API key, no registration required. |
Quick Install (Maven)
<dependency>
<groupId>org.aspose.slides.foss</groupId>
<artifactId>aspose-slides-foss</artifactId>
<version>1.0.0</version>
</dependency>Requires Java 21 or later. No native dependencies.
Minimal Working Example
import org.aspose.slides.foss.Presentation;
import org.aspose.slides.foss.ShapeType;
import org.aspose.slides.foss.export.SaveFormat;
try (Presentation prs = new Presentation()) {
var slide = prs.getSlides().get(0);
var shape = slide.getShapes().addAutoShape(ShapeType.RECTANGLE, 50, 50, 400, 120);
shape.addTextFrame("Hello, Aspose.Slides FOSS!");
prs.save("output.pptx", SaveFormat.PPTX);
}Always use Presentation inside a try-with-resources block to ensure proper cleanup.
Next Steps
After installing, see the Developer Guide for feature guides covering shapes, text formatting, tables, fill, effects, speaker notes, comments, and document properties.