GroupDocs.Redaction at a Glance

Add professional-grade content redaction to your .NET applications

Illustration redaction

Redact Textual Content

GroupDocs.Redaction for .NET allows you to locate and redact sensitive text. Text can be replaced or hidden using colored image overlays for added security. Supported across a wide variety of formats including PDFs and Office documents, this feature helps protect private data and streamline business compliance.

Redact Images

Automatically detect and redact images—either fully or partially—on document pages. Specify search criteria and targeted regions to mask sensitive visual content efficiently.

Manage File Metadata

Many file types contain hidden metadata, such as author names in Word files or EXIF data in images. GroupDocs.Redaction for .NET makes it simple to find and redact this information to ensure full data privacy.

Redact Document Objects

Ensure complete content protection by redacting document-specific elements like annotations, comments, and embedded objects in formats such as PDFs.

Platform Independence

GroupDocs.Redaction for .NET is compatible with a wide range of operating systems, development frameworks, and package managers.

Amazon
Docker
Azure
VS Code
ReSharper
macOS
Linux
NuGet

Supported File Formats

GroupDocs.Redaction for .NET supports operations with the following file formats.

MS Office Formats

  • Word: DOCX, DOC, DOCM, DOT, DOTX, DOTM,
  • Excel: XLSX, XLS, XLSM, XLSB,
  • PowerPoint: PPT, PPTX

Other Office Formats

  • Portable: PDF
  • OpenDocument: ODT, ODS, OTS, ODP, OTT
  • Text Formats: RTF, CSV, TXT, TSV

Other Formats

  • Web: HTM, HTML, MD
  • Images: BMP, GIF, JPEG, PNG, TIFF, WEBP
  • eBooks: DJVU

GroupDocs.Redaction for .NET Features

Extract and redact data from PDFs, Office files, and images with high speed and accuracy.

Feature icon

Flexible Search

Perform case-sensitive or case-insensitive searches to redact specific phrases or terms.

Feature icon

Replace or Remove Text

Easily find and replace or delete sensitive text throughout your documents.

Feature icon

Hide Text with Images

Use colored image overlays to visually mask redacted content instead of replacing text.

Feature icon

Advanced Search Capabilities

Use regular expressions for precise and flexible content redaction across complex data sets.

Feature icon

Scoped Redaction

Target specific pages or defined page areas to limit redaction to relevant sections only.

Feature icon

Metadata Redaction

Find and redact metadata properties to protect document ownership and creation details.

Feature icon

Flexible Output Formats

Export redacted files to PDF or any supported format while preserving layout integrity.

Feature icon

Complete Metadata Erasure

Erase all metadata from a document in a single action to ensure absolute privacy.

Feature icon

XML-Based Redaction Rules

Define redaction policies in XML format for repeatable, automated processing across multiple files.

Code Samples

Typical usage examples of GroupDocs.Redaction for .NET in action

Redaction with Regular Expressions

GroupDocs.Redaction for .NET enables C# developers to redact text using regular expressions and hide it with image overlays:

Redact Word Documents Using Regular Expressions

// Create an instance of the Redactor class
using (Redactor redactor = new Redactor("source.docx"))
{
    // Define redaction rules using a regular expression
    var replacement = new ReplacementOptions(System.Drawing.Color.Blue);
    var redaction = new RegexRedaction("\\d{2}\\s*\\d{2}[^\\d]*\\d{6}", replacement);
    
    // Mask all matching text with blue square overlays
    redactor.Apply(redaction);

    // Save the redacted Word document
    redactor.Save();
}

Metadata Cleanup

Use our API to easily remove all metadata from supported file formats:

Remove All Metadata from Presentations

// Provide the path of the presentation to Redactor
using (Redactor redactor = new Redactor("source.pptx"))
{
    // Configure the redaction options
    var redaction = new EraseMetadataRedaction(MetadataFilters.All);
    
    // Erase all metadata from the presentation
    redactor.Apply(redaction);

    // Save the cleaned presentation file
    redactor.Save();
}

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.

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