Key Features of GroupDocs.Redaction for Java

Protect Private Images in POWERPOINT Documents with Overlays Using Java

Keep personal and business visuals safe in POWERPOINT files with Java. Easy-to-use tools for strong privacy protection.

Hide Sensitive Data in Powerpoint Documents

GroupDocs.Redaction for Java helps your Java applications hide private content in documents fast.

  1. Create a Redactor object and load the Powerpoint file.
  2. Set redaction preferences for the task.
  3. Choose the image area and select overlay color.
  4. Apply the redaction and save the file.
// Hide image data in POWERPOINT files

// Open the file with Redactor
final Redactor redactor = new Redactor("input.pptx");
try
{
    // Set overlay color and size
    java.awt.Dimension replacement_size = new java.awt.Dimension(100, 100);
    RegionReplacementOptions replacement_options = 
        new RegionReplacementOptions(java.awt.Color.BLUE, replacement_size);

    // Select the area to mask
    java.awt.Point replacement_point = new java.awt.Point(200, 200);
    ImageAreaRedaction redaction = 
        new ImageAreaRedaction(replacement_point, replacement_options);

    // Apply overlay 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

Hide Sensitive Data in Documents

GroupDocs.Redaction for Java helps you cover or delete private content across different document formats. Keep files safe for sharing and storage.

Redaction Tools for Every Need

Search and Replace Text

Find sensitive words and replace them to ensure data privacy.

Cover Image Areas

Apply overlays to images or parts of images to keep them private.

Remove Hidden Metadata

Erase invisible metadata to avoid data leaks.

Hide Image Content with Overlays

This example shows how to place overlays on sensitive image areas in documents.

Java

//  Load the file for redaction
final Redactor redactor = new Redactor("source.pptx");
try
{
    // Define overlay size, color, and position
    java.awt.Dimension replacement_size = new java.awt.Dimension(300, 30);
    RegionReplacementOptions replacement_options = 
      new RegionReplacementOptions(java.awt.Color.BLUE, replacement_size);
    java.awt.Point replacement_point = new java.awt.Point(20, 125);
    ImageAreaRedaction redaction = new ImageAreaRedaction(replacement_point, replacement_options);

    // Mark image section on the first page
    redaction.setFilters(new RedactionFilter[] {
        new PageRangeFilter(PageSeekOrigin.Begin, 0, 1),
        new PageAreaFilter(new java.awt.Point(0, 300), new java.awt.Dimension(600, 600))
    });

    // Apply overlay to cover data
    redactor.apply(redaction);

    // Save the updated document
    SaveOptions save_options = new SaveOptions();
    save_options.setAddSuffix(true);
    save_options.setRasterizeToPDF(false);
    redactor.save(save_options);
}
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 for Java gives Java developers the ability to hide or erase content in POWERPOINT files. Secure your documents by masking text, images, 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.

Protect POWERPOINT Files with Java Redaction

With Java, you can cover or remove sensitive data in POWERPOINT files. A reliable solution for document security.

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