Key GroupDocs.Redaction for Java Features

Redact EXCEL Data with Overlays in Java

Use Java code to mask sensitive info in EXCEL spreadsheets. An effective way to keep data private.

Hide Info in Excel Spreadsheets

GroupDocs.Redaction for Java helps Java developers protect files by hiding private info in just a few lines.

  1. Start a Redactor and load your spreadsheet.
  2. Set redaction rules as needed.
  3. Choose text and overlay color.
  4. Apply and save the file.
// Use overlays to hide text in EXCEL

// Create a Redactor and load your file
final Redactor redactor = new Redactor("input.xslx");
try
{
    // Pick redaction rules
    // Enter what to hide and choose a color
    ReplacementOptions opt = new ReplacementOptions(java.awt.Color.RED);
    
    ExactPhraseRedaction redaction = new ExactPhraseRedaction("Text to hide", opt);

    // Apply redaction and save the 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

Essential Data Protection Tools

Hide or delete sensitive info from your spreadsheets without breaking layout or meaning using GroupDocs.Redaction for Java.

Designed for secure data cleanup

Edit or hide text

Find and block out any text that needs protection.

Cover sensitive visuals

Apply colored blocks over chart areas or images.

Remove metadata

Clear document history, author names, or timestamps.

Regex Redaction

Use regex to find and hide text automatically

Java

//  Open your spreadsheet
final Redactor redactor = new Redactor("source.xslx");
try
{
    // Set the pattern and overlay details
    ReplacementOptions repl_opt = new ReplacementOptions(java.awt.Color.BLUE);
    RegexRedaction redaction = new RegexRedaction("\\d{2}\\s*\\d{2}[^\\d]*\\d{6}", repl_opt);
    
    // Apply redaction
    redactor.apply(redaction);

    // Save the cleaned-up 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

Why Choose GroupDocs.Redaction for Java

GroupDocs.Redaction for Java is built for Java developers who want to hide or clean up content in EXCEL spreadsheets quickly.
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.

Redact EXCEL Sheets with Java

Hide or clear sensitive data in EXCEL using overlays and tools from Java.

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