Highlights of GroupDocs.Redaction for .NET

Remove Metadata from PHOTO with .NET

Easily protect your documents by removing hidden info from PHOTO files using C#.

Erase Metadata in Photo Files

Use GroupDocs.Redaction in your .NET project to clean up document metadata.

  1. Start a Redactor and open your Photo file.
  2. Set the rules to delete metadata.
  3. Apply redaction and clean the file.
  4. Save the result file.
// Delete metadata from PHOTO documents

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

Erase Private Information from Files

GroupDocs.Redaction for .NET gives you ways to remove personal data from text, pictures, and file details. Perfect for data security.

Useful Redaction Features

Text Cleanup

Scan and erase any text that shouldn’t be shared.

Cover Image Areas

Add covers over image parts with private details.

Remove Metadata

Delete hidden file data before sharing or publishing.

Delete Hidden Metadata Fields

This example guides you through removing metadata in a PHOTO document.

C#

//  Load PHOTO file into the redactor
using (Redactor redactor  = new Redactor("source.jpeg"))
{
    // Redact Author field
    MetadataSearchRedaction redactionAuthor = 
        new MetadataSearchRedaction(@"[A-Za-z0-9 ]+", "GroupDocs Company")
    {
        Filter = MetadataFilters.Author
    };

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

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

    // Save the cleaned version
    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 hide private content in PHOTO files, including text, image parts, and metadata.
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.

Use .NET to Redact PHOTO Metadata

Keep your PHOTO documents safe by cleaning out metadata with .NET tools.

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