Product Page | Docs | Free Web Demo | API Reference | Blog | Search | Free Support | Temporary License
GroupDocs.Redaction for .NET is a reliable tool for protecting sensitive information in business documents of many formats. With this API, you can redact text, images, metadata, annotations, and other hidden content to ensure your files remain secure before sharing or archiving.
| Directory | Description |
|---|---|
| Demos | Contains demo projects that demonstrate product features. |
| Examples | Contains С# code samples and example files to help you quickly learn and test API features. |
| Plugins | Contains Visual Studio Add-in to explore GroupDocs.Redaction for .NET examples. |
- Remove private or confidential content from 30+ different file formats.
- Clear document metadata, comments, and annotations.
- Create a rasterized PDF version of redacted files for stronger protection.
- Preserve the original file format after redaction.
- Apply redaction to a specific worksheet or column in spreadsheets.
- Change PDF compliance from PDF/A-1b to PDF/A-1a when saving as rasterized PDF.
Text: Replace or hide sensitive text in the document body with a colored overlay.
Image: Cover selected image areas with a solid color.
Metadata: Remove or replace metadata fields.
Annotation: Delete or redact document annotations.
Operation Systems: Windows, Linux, Mac OS
Supported IDE: Microsoft Visual Studio, JetBrains Rider, Microsoft Visual Code
Environment: .NET Framework 4.6.2+, .NET Core 3.1+, NET6.0+
-
Set Up Environment: Ensure that .NET Framework 4.6.2+, .NET Core 3.1+, or NET6.0+ are installed on your system.
-
Get the solution: Clone or download this repository.
git clone https://github.com/groupdocs-redaction/GroupDocs.Redaction-for-.NET.git
-
Install Package: To install the package, use NuGet packages manager or call package install command in console. Alternatively, you can download packages from the official GroupDocs Releases website.
dotnet add package GroupDocs.Redaction
-
Open examples solution in Visual Studio
GroupDocs.Redaction-for-Python-via-.NET/Examples/GroupDocs.Redaction.Examples.CSharp.sln
-
Configure License (Optional): If you have a license file, you can set the license path in the
Constants.csfile. You can also get a temporary license to test all the features. -
Run the Examples: It is much easier to run examples using Visual Studio. You can also build solution and run examples using command prompt or other tools.
-
Check results: Redacted files are saved in the folder like this
Examples\GroupDocs.Redaction.Examples.CSharp.Core\bin\Outputaccordingly to used framework.
using (Redactor redactor = new Redactor(@"sample.docx"))
{
redactor.Apply(new ExactPhraseRedaction("John Doe", true /*isCaseSensitive*/, new ReplacementOptions("[personal]")));
redactor.Save();
}using (Redactor redactor = new Redactor(@"C:\test.pdf"))
{
redactor.Apply(new AnnotationRedaction("(?im:john)", "[redacted]"));
redactor.Save()
}Product Page | Docs | Free Web Demo | API Reference | Blog | Search | Free Support | Temporary License
