What You Can Do with GroupDocs.Redaction for Java

Erase Metadata from IMAGE Files with Java

Keep your IMAGE documents secure using tools built for Java. Remove sensitive details with ease.

How to Clean Metadata in Image Files

Start using GroupDocs.Redaction in your Java app to remove hidden metadata quickly.

  1. Create a Redactor and open your Image document.
  2. Select the metadata fields to remove.
  3. Apply the redaction settings.
  4. Save the cleaned file.
// Clean hidden metadata from IMAGE

// Load your file with Redactor
final Redactor redactor = new Redactor("input.png");
try
{
    // Set metadata fields to erase
    EraseMetadataRedaction redaction = new EraseMetadataRedaction(MetadataFilters.All);

    // Apply changes and save
    RedactorChangeLog result = redactor.apply(redaction);
    redactor.save();
}
finally { redactor.close(); }
<dependencies> <dependency> <groupId>com.groupdocs</groupId> <artifactId>groupdocs-redaction</artifactId> <version>24.6</version> </dependency> </dependencies> <repositories> <repository> <id>repository.groupdocs.com</id> <name>GroupDocs Repository</name> <url>https://repository.groupdocs.com/repo/</url> </repository> </repositories>
click to copy
copied
More examples Documentation

Clean Up Content in Any File

GroupDocs.Redaction for Java helps remove private text, hidden image details, and metadata from your documents before sharing.

Main Features

Text Cleanup

Search for private words or numbers and remove them safely.

Cover Image Areas

Hide sensitive parts of images using overlays.

Metadata Removal

Clear metadata fields that may contain private info.

Delete Sensitive Metadata

This guide shows how to clean fields like Author and Title from a IMAGE document.

Java

//  Open IMAGE in redactor
final Redactor redactor = new Redactor("source.png");
try
{
    // Select the Author metadata
    MetadataSearchRedaction redactionAuthor = 
        new MetadataSearchRedaction("[A-Za-z0-9 ]+", "GroupDocs Company");
    redactionAuthor.setFilter(MetadataFilters.Author);

    // Select the Title metadata
    MetadataSearchRedaction redactionTitle = 
        new MetadataSearchRedaction("[A-Za-z0-9 ]+", "GroupDocs.Redaction Usage");
    redactionTitle.setFilter(MetadataFilters.Title);

    // Apply redaction
    Redaction[] redactions = new Redaction[]
    {
        redactionAuthor, redactionTitle
    };
    redactor.apply(redactions);

    // Save the final file
    SaveOptions saveOptions = new SaveOptions();
    saveOptions.setAddSuffix(true);
    saveOptions.setRasterizeToPDF(false);
    redactor.save(saveOptions);
}
finally { redactor.close(); }
<dependencies> <dependency> <groupId>com.groupdocs</groupId> <artifactId>groupdocs-redaction</artifactId> <version>24.6</version> </dependency> </dependencies> <repositories> <repository> <id>repository.groupdocs.com</id> <name>GroupDocs Repository</name> <url>https://repository.groupdocs.com/repo/</url> </repository> </repositories>
click to copy
copied
More examples Documentation

About GroupDocs.Redaction for Java

GroupDocs.Redaction lets Java developers remove sensitive content — including text, images, and metadata — from IMAGE files.
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 Metadata in IMAGE with Java

Use Java to erase hidden data in IMAGE files. Great for document cleanup before sharing or archiving.

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