Key Features of GroupDocs.Redaction for Java

Cover Private Images in XLSX Documents Using Java

Keep sensitive image content safe in XLSX files with Java. Our easy-to-use tools make image redaction fast and reliable.

Keep Private Data Safe in Xlsx Documents

GroupDocs.Redaction for Java helps your Java apps protect documents with simple steps.

  1. Initialize a Redactor and load your Xlsx document.
  2. Set redaction options to match your project.
  3. Select the image section and pick an overlay color.
  4. Apply the redaction and save your file.
// Cover sensitive image areas in XLSX

// Create Redactor with file path
final Redactor redactor = new Redactor("input.xslx");
try
{
    // Choose overlay dimensions and color
    java.awt.Dimension replacement_size = new java.awt.Dimension(100, 100);
    RegionReplacementOptions replacement_options = 
        new RegionReplacementOptions(java.awt.Color.BLUE, replacement_size);

    // Select the area to redact
    java.awt.Point replacement_point = new java.awt.Point(200, 200);
    ImageAreaRedaction redaction = 
        new ImageAreaRedaction(replacement_point, replacement_options);

    // Apply overlay and save document
    RedactorChangeLog result = 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

Advanced Redaction Features

With GroupDocs.Redaction for Java, you can hide or erase sensitive content in various file types while keeping document layout clean and readable.

Powerful Redaction Tools

Find and Replace Text

Search for private text and redact it to secure your documents.

Cover Image Content

Apply overlays to hide confidential images or specific sections.

Clean Hidden Metadata

Remove or update metadata to avoid sharing private details accidentally.

Hide Image Details Using Overlays

Learn how to protect sensitive parts of images in your documents with overlays.

Java

//  Load the document to redact
final Redactor redactor = new Redactor("source.xslx");
try
{
    // Set overlay size, color, and position
    java.awt.Dimension replacement_size = new java.awt.Dimension(300, 30);
    RegionReplacementOptions replacement_options = 
      new RegionReplacementOptions(java.awt.Color.BLUE, replacement_size);
    java.awt.Point replacement_point = new java.awt.Point(20, 125);
    ImageAreaRedaction redaction = new ImageAreaRedaction(replacement_point, replacement_options);

    // Select a specific image area
    redaction.setFilters(new RedactionFilter[] {
        new PageRangeFilter(PageSeekOrigin.Begin, 0, 1),
        new PageAreaFilter(new java.awt.Point(0, 300), new java.awt.Dimension(600, 600))
    });

    // Apply overlay to mask the image
    redactor.apply(redaction);

    // Save the updated file
    SaveOptions save_options = new SaveOptions();
    save_options.setAddSuffix(true);
    save_options.setRasterizeToPDF(false);
    redactor.save(save_options);
}
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 provides Java developers with simple tools to hide or delete sensitive content from XLSX files. Redact text, images, and metadata across multiple document types.
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.

Cover XLSX Content with Java Redactions

Use Java to mask or erase private content in XLSX files. A smart choice for securing business and personal documents.

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