.NET Redaction API to Redact Sensitive Data in Documents and Images

Seamlessly redact text, metadata, and annotations in PDF, DOCX, XLSX, PPTX, JPEG, PNG, and more files using our .NET document redaction API.

Download Free TrialView All APIs

Protect Sensitive Data & Enhance Document Privacy in .NET

GroupDocs.Redaction for .NET is a complete document redaction toolkit that empowers .NET developers to hide and protect confidential data in various documents and raster image formats. Possessing a robust feature set, the API allows redacting PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, PNG, JPG, GIF, BMP, and more files. Our API can be used to ensure compliance and enhance the data privacy of your legal, medical, financial, official, and personal documents. The API offers easy integration, enabling end users to develop applications to redact secure information such as social security numbers, addresses, phone numbers, or credit card data from supported file formats.

The .NET redaction API helps developers remove classified document information, including annotations and document metadata, redact and rasterize PDF document pages, add redaction and save the document in its original format, redact images inside PDFs and MS Office documents, process multiple redactions, edit the level of compliance for rasterized PDF documents, and do so much more. When using the .NET library for document redaction, you can rest assured about the security of your sensitive information and confidently navigate through today’s digital landscape without worrying about data privacy issues.

Getting Started

Please review the recommended OS, framework, and other settings on the System Requirements page before you get started with the .NET redaction API. Please ensure you comply with the requirements outlined on the page to enjoy a hassle-free user experience.

GroupDocs.Redaction for .NET Installation

To install the .NET redaction library, please download the MSI installer or the DLLs by visiting the downloads section. You can also use the NuGet package to set up the library. The Visual Studio package manager console command is shared below:

PM > Install-Package GroupDocs.Redaction

Effortlessly Redact Confidential Text from PDF and Word Documents in .NET

GroupDocs.Redaction for .NET provides advanced functionality to redact text and confidential information from within your PDF and Microsoft Word documents easily. Text redaction becomes convenient with our API by using exact phrases and regular expressions (RegEx) and applying colored boxes to selected document text. Using these redaction options, developers can optimize the privacy, compliance, and security of sensitive or private data in supported file types. In this section, we will learn how to perform text redaction in PDFs and Word documents using the reliable .NET redaction API.

Redact Text in PDF Documents using C#

You can seamlessly redact and replace confidential data from PDF documents using exact phrases in .NET. Please review the following C# coding example for more help and information.


// Find the exact phrase and replace it with your text using C#
using (Redactor redactor = new Redactor(@"path/document.pdf"))
{
  redactor.Apply(new ExactPhraseRedaction("John Doe", new ReplacementOptions("[censored]")));
  redactor.Save(new SaveOptions() { AddSuffix = true, RasterizeToPDF = false });
}


Text Redaction with Colored Box in .NET

The .NET document redaction API supports adding a colored box over selected sensitive text within Word documents. Please refer to the below-given C# code example to learn more.

  • Load the DOCX document using the Redactor class.
  • Use the ExactPhraseRedaction class with ReplacementOptions to locate the exact phrase.
  • Using the Apply method, apply a black rectangular box over the selected text.
  • Save the redacted document using the Save method.

// Find text and redact it by adding a rectangle over it using C#
using (Redactor redactor = new Redactor(@"path/document.docx"))
{
  redactor.Apply(new ExactPhraseRedaction("John Doe", new ReplacementOptions(System.Drawing.Color.Black)));
  redactor.Save();
}

You can find more working code examples of GroupDocs.Redaction for .NET at the GitHub examples page. We provide Free Online Document Text Redaction Apps that can help you redact PDF, DOCX, XLSX, PPTX, JPEG, and other file formats on the fly using your mobile device. So, please be sure to check out our free apps today.

Experience Cross-platform Data Redaction in .NET with GroupDocs

GroupDocs.Redaction for .NET offers a cross-platform data redaction experience to end users. Our API is compatible with different .NET frameworks and performs equally well across popular operating systems, such as Windows and Linux. Due to the support for various frameworks, integrating the .NET API functionality with the existing document management software becomes easy. Developers can utilize their favorite development environment to build robust text redaction solutions with the help of the .NET redaction API. No additional software installations are needed when using our API, giving you a platform-independent app development experience for redacting document data.

FAQ

1. What is GroupDocs.Redaction for .NET API?

GroupDocs.Redaction for .NET is a comprehensive document text, metadata, and annotation redaction API library to protect your sensitive information by redacting it with the help of the available API methods. Our API allows end users to redact private data within various types of documents and images with ease.

2. What document formats does the API support?

The .NET document redaction API supports PDF, Microsoft Word, Excel, PowerPoint, RTF documents, and raster images such as PNG, BMP, JPEG, TIFF, and GIF.

3. Are code examples available to help learn about document redaction using the .NET API?

Yes, we provide code examples for developers on the GitHub examples page of the .NET API for document redaction. These code examples help end users during the initial learning curve, and they can get up to speed and start redacting documents with ease.

4. Is the API secure for sensitive documents and data?

Yes, the API is secure and you can rest assured about the safety of your data while using the API. We ensure the security and integrity of your data and take all necessary measures to provide you with a secure user experience.

5. Is GroupDocs.Redaction for .NET compatible with different .NET frameworks?

Absolutely! The .NET document redaction library is compatible with multiple .NET frameworks and runs smoothly on various operating systems. You do not need to install third-party software for redacting document text using the library.

Looking for help?

Checkout our support channels for help with your questions related to GroupDocs product API features and working.

Ready to get started?

Download Free Trial View All APIs