# Redact PPT Presentation Files using Java

> Find and replace text in PPT presentations in Java using Aspose.Slides for Java.

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



## Redact PPT Presentation via Java

Using [Aspose.Slides for Java](/slides/java/), you can find and replace text in PPT presentations. Use the `SlideUtil.findAndReplaceText` method to search the presentation and replace matching text with a new value.

### Redact PPT Presentation using Java

```java
Presentation presentation = new Presentation("welcome-to-powerpoint.ppt");
try {
    SlideUtil.findAndReplaceText(presentation, true, "PowerPoint", "Aspose.Slides", null);
    presentation.save("replaced.ppt", SaveFormat.Ppt);
} finally {
    presentation.dispose();
}
```

## How to Redact PPT via Java

These are the steps to redact PPT files.

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

Call the `SlideUtil.findAndReplaceText` method to find and replace text.

Save the updated presentation in PPT format.

## Other Supported Redact Formats
