# Edit PPT in Java

> Edit PPT files in Java. Use Aspose.Slides for Java to modify PPT content and save the edited file.

Source: https://products.aspose.com/slides/java/editor/ppt/
Updated: 2026-07-09



## Edit PPT using Aspose.Slides

[Aspose.Slides for Java](/slides/java/) is a Java API for working with presentation content. You can load a `PPT` file into a `Presentation`, add a text shape, and save the edited presentation as `PPT`.

## Edit PPT in Java

Using [Aspose.Slides for Java](/slides/java/), you can edit a `PPT` file by adding a text shape and saving the result with `SaveFormat.Ppt`.

### Java code for editing PPT

```java
Presentation presentation = new Presentation("presentation.ppt");
try {
    ISlide slide = presentation.getSlides().get_Item(0);
    IAutoShape textBox = slide.getShapes().addAutoShape(ShapeType.Rectangle, 10, 10, 100, 50);
    textBox.getTextFrame().setText("New text");

    presentation.save("presentation.ppt", SaveFormat.Ppt);
} finally {
    presentation.dispose();
}
```

## How to edit PPT in Java

Install [Aspose.Slides for Java](https://docs.aspose.com/slides/java/installation/).

Add the library as a reference in your project.

Load the `PPT` presentation with the `Presentation` class.

Access the slide you want to edit.

Add a text shape with `addAutoShape` and `setText`.

Save the edited presentation with `SaveFormat.Ppt`.

## Edit other files
