Browse our Products

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.


Upcoming Update Announcement: Starting with the next release, GroupDocs.Redaction will support .NET Framework 4.6.2 instead of 4.5. This update aims to enhance security and performance. Please update your development environment accordingly.


Download C# Library to Redact Documents via .NET API

GroupDocs.Redaction for .NET is an API that helps you erase sensitive and classified data from various file formats, such as, Microsoft Word, Excel, PowerPoint and PDF. The API’s single format-independent interface supports redaction of various types, e.g., text redaction, metadata redaction, annotation redaction, and tabular document redaction. The API also allows saving the output document in its original format as well as in a sanitized PDF document with raster images of original pages.


Get Started

Open NuGet package manager, search for GroupDocs.Redaction and install. You may also use the following command from the Package Manager Console.

Install

To install please execute Install-Package GroupDocs.Redaction from Package Manager Console in Visual Studio to fetch & reference GroupDocs.Redaction assembly in your project.

PM>

Update

If you already have GroupDocs.Redaction for .Net and want to upgrade it, please execute Update-Package GroupDocs.Redaction to get the latest version.

PM>

.NET API for Redacting Sensitive Data

Version NuGet .NET


Docs API Ref Examples Blog Releases Support License


GroupDocs.Redaction for .NET is a powerful API designed to redact classified or sensitive data from a variety of document types within your .NET applications. It supports multiple redaction types including text, metadata, annotations, and image redactions. The API also integrates with OCR engines for redacting text within images and provides the ability to remove pages and embedded images, ensuring the comprehensive redaction of confidential information. GroupDocs.Redaction is highly versatile, supporting a wide range of document formats, making it an essential tool for any organization dealing with sensitive information.

Text Redactions

Exact Phrase Redaction

Search and redact specific phrases or text strings with case-sensitivity options.

Regex Redaction

Redact text based on regular expressions for flexible text matching.

Right-to-Left Support

Redaction of right-to-left text such as Arabic and Hebrew.

Metadata Redactions

Erase Metadata

Remove all metadata from a document, such as author, date created, and comments.

Metadata Search Redaction

Remove sensitive information from metadata fields using regular expressions.

Annotation Redactions

Delete Annotations

Remove annotations, comments, and other markup from documents.

Redact Annotation Text

Redact sensitive data in annotations while keeping the annotations intact.

Spreadsheet Redactions

Cell and Column Redaction

Redact specific cells or entire columns within Excel spreadsheets.

Filter by Worksheet

Apply redactions to specific worksheets in Excel files.

Image Redactions

Image Area Redaction

Cover specific areas of images, such as headers or footers, with a colored box.

OCR-Based Redaction

Use Optical Character Recognition (OCR) to recognize and redact text embedded in images.

EXIF Data Removal

Remove metadata (e.g., EXIF data) from images, acting as an “EXIF eraser.”

Page Redactions

Remove Pages

Remove specific pages from documents such as PDFs, slideshows, or spreadsheets.

Page Area Filters

Apply redactions to specific areas on a page using coordinates.

Embedded Image Redactions

Embedded Image Redaction

Redact embedded images in documents, including PDF, Microsoft Office, and OpenOffice files.

Rasterization

Convert to Raster Images

Redact sensitive data and save documents as raster images, making all data unsearchable.

Document Saving Options

Save redacted documents in either original format for further editing or in raster format for increased security.

Support for OCR Engines

Third-Party OCR Integration

Integrate third-party OCR engines (e.g., Aspose.OCR or Microsoft Azure Computer Vision API) to recognize and redact text from images or image-based PDFs.

File and Document Information

Document Info Retrieval

Retrieve metadata and page counts for any document format.

Supported Document Formats

The following table indicates the file formats supported by GroupDocs.Redaction for .NET.

FormatDescriptionDocument bodyMetadataAnnotations (comments)RemarksEmbedded imagesOCRRemove PagePage Filters
PDFSaves the document as PDF (Adobe Portable Document) format✔️✔️✔️✔️✔️✔️✔️
DOCMicrosoft Word 97 - 2007 Document.✔️✔️✔️✔️✔️✔️
DOTMicrosoft Word 97 - 2007 Template.✔️✔️✔️✔️✔️✔️
DOCXOffice Open XML WordprocessingML Document (macro-free)✔️✔️✔️✔️✔️✔️
DOCMOffice Open XML WordprocessingML Macro-Enabled Document✔️✔️✔️✔️✔️✔️
DOTXOffice Open XML WordprocessingML Template (macro-free)✔️✔️✔️✔️✔️✔️
DOTMOffice Open XML WordprocessingML Macro-Enabled Template✔️✔️✔️✔️✔️✔️
RTFRTF format.✔️✔️✔️✔️✔️
XLSXOOXML 2007-2010✔️✔️✔️✔️
XLSMOOXML Macro Enabled Workbook✔️✔️✔️✔️
XLTXOOXML Workbook Template✔️✔️✔️✔️
XLTMOOXML Macro Enabled Workbook Template✔️✔️✔️✔️
XLSExcel Workbook 97-2003✔️✔️✔️✔️
XLTExcel Workbook Template 97-2003✔️✔️✔️✔️
CSVCSV (Comma Separated Value) file.✔️✔️✔️
PPTXOOXML Microsoft PowerPoint Presentations format✔️✔️✔️✔️✔️✔️✔️
PPTPowerPoint Presentation 97-2003✔️✔️✔️✔️✔️✔️✔️
PPSXPowerPoint Open XML✔️✔️✔️✔️✔️✔️✔️
POTPowerPoint template files✔️✔️✔️✔️✔️✔️✔️
PPSMicrosoft PowerPoint 97-2003 Slide Show✔️✔️✔️✔️✔️✔️✔️
PPTMMicrosoft PowerPoint Open XML Macro-Enabled Presentation file✔️✔️✔️✔️✔️✔️✔️
PPSMMicrosoft PowerPoint Open XML Macro-Enabled Slide Show file✔️✔️✔️✔️✔️✔️✔️
POTMMicrosoft PowerPoint template✔️✔️✔️✔️✔️✔️✔️
JPEGThe image file format was standardized by the Joint Photographic Experts Group.✔️✔️✔️✔️
TIF/TIFFTagged Image File Format✔️✔️✔️✔️✔️
PNGPortable Network Graphics Image✔️✔️✔️✔️
BMPBitmap Image Files✔️✔️✔️✔️
GIFGraphical Interchange Format Image✔️✔️✔️
DJVUDjVu Document Format✔️✔️

System Requirements

Overview

  • No external software required for GroupDocs.Redaction for .NET.
  • Follow instructions in Development Environment, Installation, and Configuration.

Supported Operating Systems

  • Windows: 2003, 2008, 2012, 2012 R2, 2016, 2019 Server, Vista, XP, 7, 8, 8.1, 10 (x64, x86)
  • UNIX: Linux or any platform supporting .NET Core 3.1

Supported Frameworks

  • .NET Frameworks: 2.0, 3.5, 4.0, 4.0_ClientProfile, 4.5.0, 4.5.1, 4.5.2, 4.6.0, 4.6.2, 4.7, 4.7.2, .NET Standard 2.0
  • .NET Core Framework: 2.0 and later

Development Environments

  • Visual Studio: 2010, 2011, 2012, 2013, 2015, 2017, 2019

Get Started with GroupDocs.Redaction for .NET

Below is an overview of the key steps and code examples that will help you begin using the API in your .NET applications.

Install GroupDocs.Redaction via NuGet

  • Package Manager GUI:

    1. Open your solution/project in Visual Studio.
    2. Navigate to Tools -> NuGet Package Manager -> Manage NuGet Packages for Solution.
    3. Search for “GroupDocs.Redaction” and click “Install” to add the latest version to your project.
  • Package Manager Console:

    1. Open Package Manager Console in Visual Studio.
    2. Run the following command:
      Install-Package GroupDocs.Redaction
      

Install from the Official GroupDocs Website

  1. Download the package from the official website.
  2. Unpack the archive or follow the MSI install wizard.
  3. In Solution Explorer, right-click the References node and select “Add Reference.”
  4. Locate and add the GroupDocs.Redaction.dll file.

Apply Exact Phrase Redaction

This code sample demonstrates how to apply an exact phrase redaction to a document, replacing a specific phrase with a custom string or a colored rectangle. This C# example shows how to redact sensitive information from a document by replacing exact phrases using GroupDocs.Redaction for .NET.

// Learn how to apply an exact phrase redaction to a document using GroupDocs.Redaction for .NET. Replace sensitive phrases with custom text or a color block.
// Import necessary namespaces
using GroupDocs.Redaction;
using GroupDocs.Redaction.Options;

namespace RedactionExample
{
    class Program
    {
        static void Main(string[] args)
        {
            // Load the document from the local file system
            using (Redactor redactor = new Redactor("sample.docx"))
            {
                // Apply an exact phrase redaction
                // Replace "John Doe" with "[personal]" in the document
                RedactorChangeLog result = redactor.Apply(new ExactPhraseRedaction("John Doe", new ReplacementOptions("[personal]")));

                // Check if the redaction was applied successfully
                if (result.Status != RedactionStatus.Failed)
                {
                    // Save the redacted document
                    redactor.Save();
                }
            }
        }
    }
}

Redact Metadata in a Document

This example demonstrates how to remove sensitive data from a document’s metadata using a regular expression. It targets specific metadata fields like the author’s name. This C# example demonstrates how to redact metadata in a document by targeting specific fields such as the author’s name using GroupDocs.Redaction for .NET.

// Redact metadata in a document using GroupDocs.Redaction for .NET. Remove or replace sensitive metadata fields like author names.
// Import necessary namespaces
using GroupDocs.Redaction;
using GroupDocs.Redaction.Redactions;
using GroupDocs.Redaction.Options;

namespace RedactionExample
{
    class Program
    {
        static void Main(string[] args)
        {
            // Load the document from the local file system
            using (Redactor redactor = new Redactor("sample.docx"))
            {
                // Create a metadata redaction targeting the author's name
                MetadataSearchRedaction redaction = new MetadataSearchRedaction("Company Ltd.", "--company--");

                // Apply the redaction to the document's metadata
                redactor.Apply(redaction);

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

Redact Image Area in a Document

This C# example demonstrates how to redact a specific area of an image embedded in a document by placing a colored rectangle using GroupDocs.Redaction for .NET.

// Redact specific areas within images embedded in documents using GroupDocs.Redaction for .NET. Overlay colored rectangles on sensitive image regions.
// Import necessary namespaces
using GroupDocs.Redaction;
using GroupDocs.Redaction.Redactions;
using System.Drawing;

namespace RedactionExample
{
    class Program
    {
        static void Main(string[] args)
        {
            // Load the document containing the image from the local file system
            using (Redactor redactor = new Redactor("sample.docx"))
            {
                // Define the area of the image to be redacted (coordinates and size)
                Point samplePoint = new Point(516, 311);
                Size sampleSize = new Size(170, 35);

                // Apply the redaction by placing a blue rectangle over the specified area
                RedactorChangeLog result = redactor.Apply(new ImageAreaRedaction(samplePoint, new RegionReplacementOptions(Color.Blue, sampleSize)));

                // Check if the redaction was applied successfully
                if (result.Status != RedactionStatus.Failed)
                {
                    // Save the redacted document
                    redactor.Save();
                }
            }XX
        }
    }
}

Please check the GitHub Repository for other common usage scenarios.


Docs API Ref Examples Blog Releases Support License



Direct Download

Icons

GroupDocs.Redaction for .NET 23.11

This contains the MSI installer of GroupDocs.Redaction for .NET

Added: 3/11/2023 Downloads:

Download

File Size: 126.35MB

Icons

GroupDocs.Redaction for .NET 23.11 (DLLs only)

This ZIP file contains only the GroupDocs.Redaction for .NET assemblies. The assemblies are the same as in the MSI installer of the product of the same version. Download this if you want to use GroupDocs.Redaction for .NET without the MSI installer. This ZIP download does not contain the demo projects.

Added: 3/11/2023 Downloads:

Download

File Size: 127.27MB

Icons

GroupDocs.Redaction for .NET 23.8

This contains the MSI installer of GroupDocs.Redaction for .NET

Added: 18/8/2023 Downloads:

Download

File Size: 126.32MB

Icons

GroupDocs.Redaction for .NET 23.8 (DLLs only)

This ZIP file contains only the GroupDocs.Redaction for .NET assemblies. The assemblies are the same as in the MSI installer of the product of the same version. Download this if you want to use GroupDocs.Redaction for .NET without the MSI installer. This ZIP download does not contain the demo projects.

Added: 18/8/2023 Downloads:

Download

File Size: 127.24MB

Icons

GroupDocs.Redaction for .NET 23.6

This contains the MSI installer of GroupDocs.Redaction for .NET

Added: 28/6/2023 Downloads:

Download

File Size: 125.36MB

Icons

GroupDocs.Redaction for .NET 23.6 (DLLs only)

This ZIP file contains only the GroupDocs.Redaction for .NET assemblies. The assemblies are the same as in the MSI installer of the product of the same version. Download this if you want to use GroupDocs.Redaction for .NET without the MSI installer. This ZIP download does not contain the demo projects.

Added: 28/6/2023 Downloads:

Download

File Size: 126.28MB

Icons

GroupDocs.Redaction for .NET 23.3

This contains the MSI installer of GroupDocs.Redaction for .NET

Added: 24/3/2023 Downloads:

Download

File Size: 114.78MB

Icons

GroupDocs.Redaction for .NET 23.3 (DLLs only)

This ZIP file contains only the GroupDocs.Redaction for .NET assemblies. The assemblies are the same as in the MSI installer of the product of the same version. Download this if you want to use GroupDocs.Redaction for .NET without the MSI installer. This ZIP download does not contain the demo projects.

Added: 24/3/2023 Downloads:

Download

File Size: 115.71MB

Icons

GroupDocs.Redaction for .NET 23.1

This contains the MSI installer of GroupDocs.Redaction for .NET

Added: 26/1/2023 Downloads:

Download

File Size: 114.78MB

Icons

GroupDocs.Redaction for .NET 23.1 (DLLs only)

This ZIP file contains only the GroupDocs.Redaction for .NET assemblies. The assemblies are the same as in the MSI installer of the product of the same version. Download this if you want to use GroupDocs.Redaction for .NET without the MSI installer. This ZIP download does not contain the demo projects.

Added: 26/1/2023 Downloads:

Download

File Size: 115.71MB

Icons

GroupDocs.Redaction for .NET 22.8

This contains the MSI installer of GroupDocs.Redaction for .NET

Added: 8/25/2022 Downloads:

Download

File Size: 114.8 MB

Icons

GroupDocs.Redaction for .NET 22.8 (DLLs only)

This ZIP file contains only the GroupDocs.Redaction for .NET assemblies. The ass...

Added: 8/25/2022 Downloads:

Download

File Size: 115.7 MB

Icons

GroupDocs.Redaction for .NET 22.7

This contains the MSI installer of GroupDocs.Redaction for .NET

Added: 7/19/2022 Downloads:

Download

File Size: 111.2 MB

Icons

GroupDocs.Redaction for .NET 22.7 (DLLs only)

This ZIP file contains only the GroupDocs.Redaction for .NET assemblies. The ass...

Added: 7/19/2022 Downloads:

Download

File Size: 112.2 MB

Icons

GroupDocs.Redaction for .NET 21.9

This contains the MSI installer of GroupDocs.Redaction for .NET

Added: 9/22/2021 Downloads:

Download

File Size: 109.1 MB

Icons

GroupDocs.Redaction for .NET 21.9 (DLLs only)

This ZIP file contains only the GroupDocs.Redaction for .NET assemblies. The ass...

Added: 9/22/2021 Downloads:

Download

File Size: 109.5 MB

Icons

GroupDocs.Redaction for .NET 21.3

This contains the MSI installer of GroupDocs.Redaction for .NET

Added: 3/31/2021 Downloads:

Download

File Size: 95.3 MB

Icons

GroupDocs.Redaction for .NET 21.3 (DLLs only)

This ZIP file contains only the GroupDocs.Redaction for .NET assemblies. The ass...

Added: 3/31/2021 Downloads:

Download

File Size: 95.7 MB

Icons

GroupDocs.Redaction for .NET 21.1

This contains the MSI installer of GroupDocs.Redaction for .NET

Added: 1/29/2021 Downloads:

Download

File Size: 95.3 MB

Icons

GroupDocs.Redaction for .NET 20.11

This contains the MSI installer of GroupDocs.Redaction for .NET

Added: 11/13/2020 Downloads:

Download

File Size: 95.3 MB

Icons

GroupDocs.Redaction for .NET 21.1 (DLLs only)

This ZIP file contains only the GroupDocs.Redaction for .NET assemblies. The ass...

Added: 1/29/2021 Downloads:

Download

File Size: 95.7 MB

Icons

GroupDocs.Redaction for .NET 20.11 (DLLs only)

This ZIP file contains only the GroupDocs.Redaction for .NET assemblies. The ass...

Added: 11/13/2020 Downloads:

Download

File Size: 95.7 MB

Icons

GroupDocs.Redaction for .NET 20.9

This contains the MSI installer of GroupDocs.Redaction for .NET

Added: 9/30/2020 Downloads:

Download

File Size: 95.3 MB

Icons

GroupDocs.Redaction for .NET 20.9 (DLLs only)

This ZIP file contains only the GroupDocs.Redaction for .NET assemblies. The ass...

Added: 9/30/2020 Downloads:

Download

File Size: 95.7 MB

Icons

GroupDocs.Redaction for .NET 20.7

This contains the MSI installer of GroupDocs.Redaction for .NET

Added: 7/30/2020 Downloads:

Download

File Size: 89.8 MB

Icons

GroupDocs.Redaction for .NET 20.7 (DLLs only)

This ZIP file contains only the GroupDocs.Redaction for .NET assemblies. The ass...

Added: 7/30/2020 Downloads:

Download

File Size: 90.2 MB

Icons

GroupDocs.Redaction for .NET 20.2

This contains the MSI installer of GroupDocs.Redaction for .NET

Added: 2/28/2020 Downloads:

Download

File Size: 86.6 MB

Icons

GroupDocs.Redaction for .NET 20.2 (DLLs only)

This ZIP file contains only the GroupDocs.Redaction for .NET assemblies. The ass...

Added: 2/28/2020 Downloads:

Download

File Size: 86.2 MB

Icons

GroupDocs.Redaction for .NET 19.12

This contains the MSI installer of GroupDocs.Redaction for .NET

Added: 12/25/2019 Downloads:

Download

File Size: 86.6 MB

Icons

GroupDocs.Redaction for .NET 19.12 (DLLs only)

This ZIP file contains only the GroupDocs.Redaction for .NET assemblies. The ass...

Added: 12/25/2019 Downloads:

Download

File Size: 86.1 MB

Icons

GroupDocs.Redaction for .NET 19.9

This contains the MSI installer of GroupDocs.Redaction for .NET

Added: 9/25/2019 Downloads:

Download

File Size: 45.1 MB

Icons

GroupDocs.Redaction for .NET 19.9 (DLLs only)

This ZIP file contains only the GroupDocs.Redaction for .NET assemblies. The ass...

Added: 9/25/2019 Downloads:

Download

File Size: 44.6 MB

Icons

GroupDocs.Redaction for .NET 19.5

This contains the MSI installer of GroupDocs.Redaction for .NET

Added: 5/30/2019 Downloads:

Download

File Size: 41.3 MB

Icons

GroupDocs.Redaction for .NET 19.5 (DLLs only)

This ZIP file contains only the GroupDocs.Redaction for .NET assemblies. The ass...

Added: 5/30/2019 Downloads:

Download

File Size: 40.9 MB

Icons

GroupDocs.Redaction for .NET 19.3

This contains the MSI installer of GroupDocs.Redaction for .NET

Added: 3/12/2019 Downloads:

Download

File Size: 41.3 MB

Icons

GroupDocs.Redaction for .NET 19.3 (DLLs only)

This ZIP file contains only the GroupDocs.Redaction for .NET assemblies. The ass...

Added: 3/12/2019 Downloads:

Download

File Size: 40.8 MB

Icons

GroupDocs.Redaction for .NET 19.1

This contains the MSI installer of GroupDocs.Redaction for .NET

Added: 1/31/2019 Downloads:

Download

File Size: 37.7 MB

Icons

GroupDocs.Redaction for .NET 19.1 (DLLs only)

This ZIP file contains only the GroupDocs.Redaction for .NET assemblies. The ass...

Added: 1/31/2019 Downloads:

Download

File Size: 37.2 MB


 English