What GroupDocs.Redaction for .NET Offers

Redact Sensitive Images in PPTX Documents Using .NET

Protect private and business data in PPTX files with C#. Our tools make redacting images fast and easy.

Keep Business Data Safe in Pptx Documents

GroupDocs.Redaction for .NET: Helping .NET apps secure documents by hiding sensitive information.

  1. Set up a Redactor instance and load the Pptx file.
  2. Configure redaction settings to fit your needs.
  3. Select image areas and assign overlay colors.
  4. Process the redaction and save your file.
// Redact sensitive image areas in PPTX

// Open file using Redactor
using (Redactor redactor  = new Redactor("input.pptx"))
{
    // Define overlay color and dimensions
    Size replacement_size = new Size(100, 100);
    var replacement_options = new RegionReplacementOptions(Color.Blue, replacement_size);

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

Document Redaction Tools

GroupDocs.Redaction for .NET allows you to hide or delete sensitive content in various file types. Protect information while keeping documents clean and shareable.

Powerful Redaction Tools

Search & Replace Text

Locate and redact private text to enhance document security.

Redact Image Content

Cover entire images or selected regions with overlays to hide private visuals.

Remove Metadata

Erase or modify hidden metadata to prevent data leaks.

Hide Image Data with Overlays

This example demonstrates how to redact sensitive images in documents.

C#

//  Load the document
using (Redactor redactor  = new Redactor("source.pptx"))
{
    // Set overlay size, position, and 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);

    // Specify the area to redact on the first page
    redaction.Filters = new RedactionFilter[] {
        new PageRangeFilter(PageSeekOrigin.Begin, 0, 1),
        new PageAreaFilter(new Point(0, 300), new Size(600, 600))
    };

    // Apply the overlay
    redactor.Apply(redaction);

    // Save the redacted file
    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 gives C# developers easy-to-use tools for hiding or deleting content in PPTX files. Protect documents by redacting text, images, and metadata across multiple 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.

Redact PPTX Content with .NET

Use .NET to hide or delete sensitive content in PPTX files. A reliable solution for document security.

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