# Redact ODP Presentation Files using Java

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

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



## Redact ODP Presentation via Java

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

### Redact ODP Presentation using Java

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

## How to Redact ODP via Java

These are the steps to redact ODP files.

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

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

Save the updated presentation in ODP format.

## Other Supported Redact Formats
