Key Features of GroupDocs.Redaction for .NET

Clean Metadata in PDF Files with .NET

Protect sensitive business and personal information in PDF files using C#. Easy-to-use tools for reliable data protection.

Remove Metadata from Pdf Documents

Use GroupDocs.Redaction to quickly secure document metadata in your .NET apps.

  1. Create a Redactor instance and load your Pdf file.
  2. Set up redaction to remove all hidden metadata.
  3. Apply the redaction to clean the document.
  4. Save the updated file.
// Erase metadata from PDF files

// Load the file with Redactor
using (Redactor redactor  = new Redactor("input.pdf"))
{
    // Configure metadata removal redaction
    var redaction = new EraseMetadataRedaction(MetadataFilters.All);
    
    // Apply changes and save the file
    redactor.Apply(redaction);
    redactor.Save();
}
dotnet add package GroupDocs.Redaction
click to copy
copied
More examples Documentation

Redact Sensitive Data in Documents

GroupDocs.Redaction for .NET helps you hide or erase confidential content in various file formats. Keep private data safe while keeping documents clear and professional.

Powerful Redaction Features

Find and Replace Text

Search for sensitive text in your documents and replace or remove it to protect privacy.

Hide Image Content

Add overlays to images or specific areas to cover sensitive visuals.

Clean Metadata

Delete or edit hidden metadata to prevent unwanted data leaks.

Remove Hidden Metadata Entries

This example shows how to modify metadata in a PDF file.

C#

//  Load the PDF file into the redactor
using (Redactor redactor  = new Redactor("source.pdf"))
{
    // Set up redaction for the Author property
    MetadataSearchRedaction redactionAuthor = 
        new MetadataSearchRedaction(@"[A-Za-z0-9 ]+", "GroupDocs Company")
    {
        Filter = MetadataFilters.Author
    };

    // Set up redaction for the Title property
    MetadataSearchRedaction redactionTitle = 
        new MetadataSearchRedaction(@"[A-Za-z0-9 ]+", "GroupDocs.Redaction Usage")
    {
        Filter = MetadataFilters.Title
    };

    // Run redaction on the document
    var redactions = new MetadataSearchRedaction[] { redactionAuthor, redactionTitle };
    redactor.Apply(redactions);

    // Save the cleaned file
    var saveOptions = new SaveOptions() { AddSuffix = true, RasterizeToPDF = false };
    var outputPath = redactor.Save(saveOptions);
}
dotnet add package GroupDocs.Redaction
click to copy
copied
More examples Documentation

About GroupDocs.Redaction for .NET

GroupDocs.Redaction gives C# developers easy-to-use tools to redact content in PDF files. Mask 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.

Protect PDF Files with .NET Metadata Redaction

Use .NET to erase hidden data from PDF files. A simple and effective way to secure sensitive information in your documents.

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