GroupDocs.Redaction at a Glance

Enhance your Java applications with professional redaction tools

Illustration redaction

Remove Sensitive Text

With GroupDocs.Redaction for Java, you can search for and conceal private text using customizable overlays or replacements. Compatible with PDFs, Word, Excel, and more, it’s ideal for regulatory compliance and secure document sharing.

Conceal Images

Identify and mask images completely or partially based on your requirements. Define detection rules and area coordinates to secure visual data efficiently.

Clean Embedded Metadata

Files may carry hidden information such as author names, creation tools, or device details. GroupDocs.Redaction for Java lets you detect and sanitize metadata in Word, Excel, images, and other formats.

Redact Embedded Objects

Thoroughly sanitize documents by redacting objects like PDF annotations, comments, or other embedded items to eliminate any trace of confidential information.

Platform Independence

GroupDocs.Redaction for Java works across major operating systems, frameworks, and development platforms.

Amazon
Docker
Azure
Eclipse
IntelliJ
Windows
Linux
Maven

Supported File Formats

GroupDocs.Redaction for Java supports working with the following file formats.

MS Office Formats

  • Word: DOCX, DOC, DOCM, DOT, DOTX, DOTM,
  • Excel: XLSX, XLS, XLSM, XLSB,
  • PowerPoint: PPT, PPTX

Other Office Formats

  • Portable: PDF
  • OpenDocument: ODT, ODS, OTS, ODP, OTT
  • Text Formats: RTF, CSV, TXT, TSV

Other Formats

  • Web: HTM, HTML, MD
  • Images: BMP, GIF, JPEG, PNG, TIFF, WEBP
  • eBooks: DJVU

What You Can Do with GroupDocs.Redaction

Quickly locate and redact content from PDFs, Office documents, and images with precision.

Feature icon

Search with Precision

Use case-sensitive and case-insensitive search modes to find and redact exact matches.

Feature icon

Find and Replace Text

Automatically detect and substitute or delete confidential text across the document.

Feature icon

Overlay with Custom Images

Use image blocks to obscure redacted text, preserving layout while hiding details.

Feature icon

Use Regex for Advanced Redaction

Utilize regular expressions to detect complex patterns and redact intelligently.

Feature icon

Redact Specific Areas

Limit redaction to selected pages or zones by defining precise areas to target.

Feature icon

Scrub Metadata Fields

Identify and clean document metadata, including author, company, or tracking data.

Feature icon

Export in Desired Format

Save your redacted files in PDF or another supported format without losing layout integrity.

Feature icon

Wipe All Metadata

Completely remove metadata from supported files in just one command.

Feature icon

Automated Redaction Policies

Create reusable redaction configurations stored in XML for consistent, batch redaction.

Code Samples

Common GroupDocs.Redaction for Java use case examples

Redaction Using Regex

GroupDocs.Redaction for Java empowers Java developers to apply regex-based redaction with optional image masking:

Redact Word Documents Using Regular Expressions

// Create an instance of the Redactor class
final Redactor redactor = new Redactor("source.docx");
try
{
    // Define redaction rules using a regular expression
    ReplacementOptions replacement = new ReplacementOptions(java.awt.Color.BLUE);
    RegexRedaction redaction = new RegexRedaction("\\d{2}\\s*\\d{2}[^\\d]*\\d{6}", replacement);

    // Mask all matching text with blue square overlays
    redactor.apply(redaction);

    // Save the redacted Word document
    redactor.save();
}
finally { redactor.close(); }

Remove All Metadata

With our API, you can delete metadata across multiple file types in one step:

Remove All Metadata from Presentations

// Provide the path of the presentation to Redactor
final Redactor redactor  = new Redactor("source.pptx");
try 
{
    // Configure the redaction options
    EraseMetadataRedaction red = new EraseMetadataRedaction(MetadataFilters.All);

    // Erase all metadata from the presentation
    redactor.apply(red);

    // Save the cleaned presentation file
    redactor.save();
}
finally { redactor.close(); }

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.

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