Redact PPTX using Java
Build Java applications that find and replace text in presentation files using server-side APIs.
Redact a PPTX Presentation via Java
Using
Aspose.Slides for 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 a PPTX Presentation using 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
Follow these steps to redact a PPTX presentation.
- Load the PPTX file with the
Presentationclass. - Call the
SlideUtil.findAndReplaceTextmethod to find and replace text. - Save the updated presentation with
SaveFormat.Pptx.
Built with Aspose.Slides
Redact PPTX Files Online
The free Aspose.Slides Redaction app is built with Aspose.Slides for Java, the same API as the code above. Open it and see what the API can do with your own PPTX files.
- Runs in your browser, nothing to install.
- See how Aspose.Slides finds and replaces text before you write code.
- Find and replace text in your PPTX file, including regular expressions.
- Download the redacted file.
Other Supported Redaction Formats
Using Java, you can also redact the following formats.