Inside GroupDocs.Redaction for Java

Hide Text in POWERPOINT Using Overlays and Java

Use Java and GroupDocs.Redaction for Java to keep your POWERPOINT slides secure by masking sensitive content.

Clean Powerpoint Presentations Before Sharing

Use GroupDocs.Redaction for Java in Java apps to hide or remove sensitive parts of your slides.

  1. Create a new Redactor with your slide deck path.
  2. Define your redaction preferences.
  3. Set text pattern and overlay color.
  4. Run and save the redacted file.
// Overlay text areas in POWERPOINT

// Open the file with Redactor
final Redactor redactor = new Redactor("input.pptx");
try
{
    // Adjust redaction settings
    // Enter text and choose overlay color
    ReplacementOptions opt = new ReplacementOptions(java.awt.Color.RED);
    
    ExactPhraseRedaction redaction = new ExactPhraseRedaction("Text to hide", opt);

    // Redact and save the updated file
    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

Simple Redaction for Sensitive Slides

GroupDocs.Redaction for Java makes it easy to block or remove content from slides, no matter the use case.

Redaction tools that adapt

Find and replace text

Protect sensitive phrases or labels on any slide.

Cover parts of visuals

Add overlays to selected slide areas or images.

Remove hidden content

Wipe slide metadata or revision notes before sharing.

Regex for Text Redaction

Learn to detect and redact text using pattern matching

Java

//  Load the slide deck
final Redactor redactor = new Redactor("source.pptx");
try
{
    // Apply your regex rules
    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
    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

About GroupDocs.Redaction for Java

GroupDocs.Redaction for Java helps Java developers clean POWERPOINT slides by blocking or deleting sensitive content like text, metadata, or images.
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 POWERPOINT Slides with Java

Use overlay redaction and cleanup tools from Java to keep your POWERPOINT slides private.

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