GroupDocs.Redaction for .NET Key Features

Mask Sensitive Images in XLSX Documents Using .NET

Ensure data privacy in XLSX files with C#. Our tools are designed to make image redaction quick and effective.

Protect Private Data in Xlsx Documents

GroupDocs.Redaction for .NET: Helping your .NET apps secure documents efficiently.

  1. Create a Redactor instance and load the Xlsx file.
  2. Set up the redaction parameters to match your needs.
  3. Define the image area and choose overlay color.
  4. Apply redaction and save the output file.
// Mask sensitive image parts in XLSX

// Initialize Redactor with file path
using (Redactor redactor  = new Redactor("input.xslx"))
{
    // Choose overlay size and color
    Size replacement_size = new Size(100, 100);
    var replacement_options = new RegionReplacementOptions(Color.Blue, replacement_size);

    // Mark area to redact
    Point replacement_point = new Point(200, 200);
    var redaction = new ImageAreaRedaction(replacement_point, replacement_options);
    
    // Apply and save changes
    redactor.Apply(redaction);
    redactor.Save();
}
dotnet add package GroupDocs.Redaction
click to copy
copied
More examples Documentation

Document Redaction Features

With GroupDocs.Redaction for .NET, you can remove or hide content across various file formats. Keep sensitive data private while maintaining a clean layout.

Robust Redaction Features

Search and Replace Text

Quickly find and redact confidential text to protect sensitive data.

Mask Image Content

Apply overlays to entire images or specific areas to hide private visuals.

Clean Up Metadata

Remove or adjust hidden metadata to prevent unintentional data exposure.

Hide Image Content with Overlays

Learn how to mask sensitive image regions in your documents.

C#

//  Open document for redaction
using (Redactor redactor  = new Redactor("source.xslx"))
{
    // Define overlay attributes: size, location, color
    Size replacement_size = new Size(300, 30);
    var replacement_options = new RegionReplacementOptions(Color.Blue, replacement_size);
    Point replacement_point = new Point(20, 125);
    var redaction = new ImageAreaRedaction(replacement_point, replacement_options);

    // Focus on a specific image area
    redaction.Filters = new RedactionFilter[] {
        new PageRangeFilter(PageSeekOrigin.Begin, 0, 1),
        new PageAreaFilter(new Point(0, 300), new Size(600, 600))
    };

    // Overlay the image area
    redactor.Apply(redaction);

    // Save the redacted document
    var save_options = new SaveOptions() { AddSuffix = true, RasterizeToPDF = false };
    var outputPath = redactor.Save(save_options);
}
dotnet add package GroupDocs.Redaction
click to copy
copied
More examples Documentation

About GroupDocs.Redaction for .NET

GroupDocs.Redaction for .NET offers C# developers simple tools to hide or erase content from XLSX files. Protect documents by redacting text, images, and metadata in different formats.
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.

Mask XLSX Content with .NET Redactions

Use .NET to redact or delete sensitive content in XLSX files. A practical solution 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