See What You Can Do with GroupDocs.Redaction for Java

Clean Metadata from XLSX Files in Java

Use Java to get rid of personal or hidden details in your XLSX documents. Ideal for both work and personal use.

Delete Metadata from Xlsx Files

GroupDocs.Redaction helps your Java project clear out sensitive metadata fast.

  1. Start a Redactor and open the Xlsx file.
  2. Pick which metadata fields to remove.
  3. Run redaction to wipe them from the file.
  4. Save the cleaned version.
// Erase hidden metadata in XLSX files

// Open the file using Redactor
final Redactor redactor = new Redactor("input.xslx");
try
{
    // Choose the metadata fields to remove
    EraseMetadataRedaction redaction = new EraseMetadataRedaction(MetadataFilters.All);

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

Secure Your Files by Hiding Sensitive Info

With GroupDocs.Redaction for Java, you can clean personal data from multiple document types. A simple way to keep your files safe.

Features for Redacting Content

Remove Text

Search and delete words or phrases that hold private data.

Cover Images

Hide image sections that contain private or sensitive parts.

Erase Metadata

Remove background info that could reveal personal or business details.

Metadata Removal Example

This example shows how to delete metadata like Author or Title from a XLSX file.

Java

//  Open your document
final Redactor redactor = new Redactor("source.xslx");
try
{
    // Select Author field for redaction
    MetadataSearchRedaction redactionAuthor = 
        new MetadataSearchRedaction("[A-Za-z0-9 ]+", "GroupDocs Company");
    redactionAuthor.setFilter(MetadataFilters.Author);

    // Select Title field for redaction
    MetadataSearchRedaction redactionTitle = 
        new MetadataSearchRedaction("[A-Za-z0-9 ]+", "GroupDocs.Redaction Usage");
    redactionTitle.setFilter(MetadataFilters.Title);

    // Run the redaction tool
    Redaction[] redactions = new Redaction[]
    {
        redactionAuthor, redactionTitle
    };
    redactor.apply(redactions);

    // Save the result
    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 gives Java users everything they need to hide or erase content in XLSX files — including metadata, text, and 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.

Remove Metadata from XLSX with Java

Java makes it simple to delete metadata from your XLSX files. Good for privacy and data cleanup.

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