Key Features of GroupDocs.Redaction for Java

Clean Metadata in PPTX with Java Tools

Clear personal details stored in metadata using Java. Works great for both personal and business documents.

Remove Metadata in Pptx Files

With GroupDocs.Redaction, your Java projects can clean hidden metadata in just a few steps.

  1. Set up a Redactor and load your Pptx file.
  2. Choose which metadata fields to clear.
  3. Run the redaction process.
  4. Save the file with metadata removed.
// Remove metadata from PPTX

// Use Redactor to open the file
final Redactor redactor = new Redactor("input.pptx");
try
{
    // Set up metadata fields to remove
    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

More Redaction Tools You Can Use

GroupDocs.Redaction for Java helps you clear sensitive info from all major file types. Keep documents clean and ready to share.

Privacy Features Built In

Remove Sensitive Text

Find and delete names, emails, and other personal info from your files.

Hide Parts of Images

Add overlays to cover areas in images you want to keep private.

Clean Metadata

Erase background data like author or title before sharing your files.

Remove Metadata Fields Example

This example shows how you can delete metadata like author and title from a PPTX file.

Java

//  Open your PPTX file
final Redactor redactor = new Redactor("source.pptx");
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);

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

    // Save the redacted 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

What Is GroupDocs.Redaction for Java?

GroupDocs.Redaction gives Java developers tools to remove private content in PPTX files. Delete metadata, hide images, and clean text easily.
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 PPTX with Java

Java makes it simple to delete hidden data in PPTX files. Great for keeping documents safe before sharing.

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