Main Features of GroupDocs.Redaction for Java

Remove Metadata from JPEG Files Using Java

Keep your JPEG documents secure with simple Java tools that remove private details.

Clean Metadata in Jpeg Documents

GroupDocs.Redaction makes it simple to delete metadata in your Java projects.

  1. Create a Redactor and load your Jpeg file.
  2. Select options to remove all metadata fields.
  3. Run redaction to clean the file.
  4. Save the updated file with no hidden data.
// Clear metadata from JPEG files

// Load the file using Redactor
final Redactor redactor = new Redactor("input.jpg");
try
{
    // Set up metadata cleaning
    EraseMetadataRedaction redaction = new EraseMetadataRedaction(MetadataFilters.All);

    // Run and save changes
    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

Protect Your Documents

GroupDocs.Redaction for Java helps remove private content from many document types. Keep sensitive info out of your shared files.

Key Redaction Features

Remove Text

Find and erase personal words or phrases from your files.

Hide Image Content

Add overlays to cover areas of images with sensitive info.

Edit Metadata

Clean or change metadata fields to avoid exposing private info.

Delete Hidden Metadata Fields

This example shows how to remove or edit metadata like Author and Title in JPEG documents.

Java

//  Open JPEG file with redactor
final Redactor redactor = new Redactor("source.jpg");
try
{
    // Target the Author metadata
    MetadataSearchRedaction redactionAuthor = 
        new MetadataSearchRedaction("[A-Za-z0-9 ]+", "GroupDocs Company");
    redactionAuthor.setFilter(MetadataFilters.Author);

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

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

    // Save the cleaned 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 gives Java developers the tools to remove unwanted text, images, and metadata from JPEG 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.

Remove Metadata from JPEG Using Java

Use Java to delete hidden data from JPEG files and protect sensitive information.

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