Top Features of GroupDocs.Redaction for .NET

Remove Metadata from JPEG Files Using .NET

Protect private details in your JPEG files using C#. Simple tools for better document security.

Clean Metadata in Jpeg Documents

GroupDocs.Redaction makes it easy to remove metadata in your .NET applications.

  1. Set up a Redactor and load the Jpeg file you want to clean.
  2. Choose the settings to clear all metadata.
  3. Run the redaction to clean the file.
  4. Save your file with cleaned metadata.
// Remove metadata from JPEG files

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

Remove Sensitive Data from Documents

GroupDocs.Redaction for .NET lets you hide or clean private content across many formats. Protect sensitive data while keeping your files useful and clear.

Key Redaction Features

Search and Remove Text

Find sensitive words or phrases in your files and clean them out.

Cover Image Areas

Use overlays to hide private parts of images.

Edit Metadata

Delete or change metadata to avoid sharing private data.

Clean Hidden Metadata Fields

This example shows how to delete or edit hidden metadata in JPEG documents.

C#

//  Open JPEG file with redactor
using (Redactor redactor  = new Redactor("source.jpg"))
{
    // Add redaction for Author field
    MetadataSearchRedaction redactionAuthor = 
        new MetadataSearchRedaction(@"[A-Za-z0-9 ]+", "GroupDocs Company")
    {
        Filter = MetadataFilters.Author
    };

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

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

    // Save the cleaned document
    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 helps C# developers remove text, images, and metadata from JPEG files with simple tools.
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.

Clean JPEG Metadata with .NET

Use .NET to remove hidden data from your JPEG documents. A great way to protect sensitive details.

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