# Redact PPTX Presentation Files using Java

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

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



## Redact PPTX Presentation via Java

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

### Redact PPTX Presentation using Java

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

## How to Redact PPTX via Java

These are the steps to redact PPTX files.

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

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

Save the updated presentation in PPTX format.

## Other Supported Redact Formats
