Explore Features of GroupDocs.Redaction for Java

Mask Text in PPTX Presentations with Java

Easily protect personal or business details in your PPTX slides using Java and GroupDocs.Redaction for Java.

Redact Private Content in Pptx Slides

GroupDocs.Redaction for Java makes content protection simple for Java developers.

  1. Set up a Redactor with your presentation path.
  2. Choose how redaction should behave.
  3. Add the text pattern and overlay color.
  4. Redact the slide and save it.
// Use overlays to block text in PPTX

// Initialize Redactor with your presentation
final Redactor redactor = new Redactor("input.pptx");
try
{
    // Select your redaction preferences
    // Set the text and overlay color
    ReplacementOptions opt = new ReplacementOptions(java.awt.Color.RED);
    
    ExactPhraseRedaction redaction = new ExactPhraseRedaction("Text to hide", opt);

    // Run the redaction and save the slide deck
    redactor.apply(redaction);
    redactor.save();
}
finally { redactor.close(); }
<dependencies> <dependency> <groupId>com.groupdocs</groupId> <artifactId>groupdocs-redaction</artifactId> <version>24.6</version> </dependency> </dependencies> <repositories> <repository> <id>repository.groupdocs.com</id> <name>GroupDocs Repository</name> <url>https://repository.groupdocs.com/repo/</url> </repository> </repositories>
click to copy
copied
More examples Documentation

Powerful Redaction Tools

With GroupDocs.Redaction for Java, block or remove sensitive content in your presentations without touching layout or formatting.

Features that work across slides

Hide or replace text

Protect names, terms, or notes that shouldn’t be seen.

Cover visual areas

Add overlays to pictures or graphic sections of slides.

Clear metadata

Erase behind-the-scenes info that may reveal authorship or editing history.

Redact Text with Regex

Use regular expressions to find and cover sensitive words

Java

//  Open the presentation file
final Redactor redactor = new Redactor("source.pptx");
try
{
    // Set search pattern and overlay color
    ReplacementOptions repl_opt = new ReplacementOptions(java.awt.Color.BLUE);
    RegexRedaction redaction = new RegexRedaction("\\d{2}\\s*\\d{2}[^\\d]*\\d{6}", repl_opt);
    
    // Run redaction rules
    redactor.apply(redaction);

    // Save the final version
    SaveOptions saveOptions = new SaveOptions();
    saveOptions.setAddSuffix(true);
    saveOptions.setRasterizeToPDF(false);
    redactor.save(saveOptions);
}
finally { redactor.close(); }
<dependencies> <dependency> <groupId>com.groupdocs</groupId> <artifactId>groupdocs-redaction</artifactId> <version>24.6</version> </dependency> </dependencies> <repositories> <repository> <id>repository.groupdocs.com</id> <name>GroupDocs Repository</name> <url>https://repository.groupdocs.com/repo/</url> </repository> </repositories>
click to copy
copied
More examples Documentation

What GroupDocs.Redaction for Java Does

GroupDocs.Redaction for Java lets Java developers hide or remove text, images, or metadata in PPTX presentations in just a few steps.
Learn more
About illustration

Ready to get started?

Download GroupDocs.Redaction for free or get a trial license for full access!

Useful resources

Explore documentation, code samples, and community support to enhance your experience.

Protect PPTX Slides with Java Tools

Cover sensitive content or remove it completely from PPTX presentations using Java redaction features.

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English