We’re happy to announce the release of GroupDocs.Redaction for Java 26.10, available as of October 2026. This release ports selected improvements from GroupDocs.Redaction for .NET 26.7 and earlier, including custom redaction support and improved image positioning. It also adds new features for OOXML compliance in Word documents, extended spreadsheet template format support, and fixes for CSV/TAB/TSV redaction behavior.
What’s new in this release
- [Feature] Specify and preserve OOXML compliance when saving Word Processing documents (REDACTIONNET-718)
- [Feature] Add spreadsheet template formats XLT / XLTX / XLTM and TAB; improve Cells save-format mapping (REDACTIONNET-802)
- [Fix] Skip DrawBox (colored rectangle) redactions for text-only spreadsheets CSV / TAB / TSV (REDACTIONNET-805)
- [Feature] Custom redaction handler for PDF
PageAreaRedaction(ICustomRedactionHandler) (REDACTIONNET-594) - [Fix] Fix page-area image redaction positioning (embedded images with page placement and real size) (REDACTIONNET-551)
Public API changes
- Added
WordProcessingComplianceLevel(Ecma,Transitional,Strict). - Added
WordprocessingSaveOptionswithgetOoxmlCompliance/setOoxmlCompliance. - Added
SaveOptions.getWordprocessingSaveOptions(). - Added
ICustomRedactionHandler,CustomRedactionContext,CustomRedactionResult. - Added
ReplacementOptions.getCustomRedaction/setCustomRedaction. - Added
FileType.getXLT(),getXLTX(),getXLTM(),getTAB().
New features
This release introduces the following new capabilities:
- OOXML compliance control: You can now request an OOXML compliance level when saving Word documents. If not set, the original document compliance is preserved. Strict cannot be downgraded directly to Ecma (use Transitional).
- Spreadsheet template formats:
FileTypenow exposes Excel template types (.xlt,.xltx,.xltm) and.tab, with correct save-format mapping in Cells paths. - Custom redaction handler for PDF:
ReplacementOptionsnow accepts anICustomRedactionHandler. On each match, the handler receivesCustomRedactionContextand returnsCustomRedactionResult(apply flag + replacement text). Currently supported for PDFPageAreaRedactiononly. - Image area positioning: Embedded images that expose page placement and real pixel size are redacted using page coordinates, so
PageAreaFilter/ImageAreaRedactionalign with the visible image area when the bitmap size differs from the on-page shape.
Code example
The following example demonstrates how to specify OOXML compliance level when saving a redacted Word document:
try (Redactor redactor = new Redactor("sample.docx")) {
redactor.apply(new ExactPhraseRedaction("John Doe", new ReplacementOptions("[personal]")));
SaveOptions options = new SaveOptions();
options.setAddSuffix(true);
options.setRasterizeToPDF(false);
options.setRedactedFileSuffix("Strict");
options.getWordprocessingSaveOptions().setOoxmlCompliance(WordProcessingComplianceLevel.Strict);
redactor.save(options);
}
The next example shows how to use a custom redaction handler for PDF PageAreaRedaction:
ReplacementOptions optionsText = new ReplacementOptions("[replaced]");
optionsText.setCustomRedaction(new ICustomRedactionHandler() {
@Override
public CustomRedactionResult redact(CustomRedactionContext context) {
CustomRedactionResult result = new CustomRedactionResult();
if (context.getText() != null && context.getText().contains("Lorem")) {
result.setApply(true);
result.setText(context.getText().replace("Lorem", "[redacted-custom]"));
}
return result;
}
});
try (Redactor redactor = new Redactor("sample.pdf")) {
redactor.apply(new PageAreaRedaction(java.util.regex.Pattern.compile(".*"), optionsText));
redactor.save(new SaveOptions(false, "Custom_Redaction_Result"));
}
How to get the update
Maven
Install GroupDocs.Redaction for Java 26.10 via Maven by adding the following dependency to your pom.xml:
<dependency>
<groupId>com.groupdocs</groupId>
<artifactId>groupdocs-redaction</artifactId>
<version>26.10</version>
</dependency>
You can also download the package directly from the GroupDocs.Redaction for Java 26.10 Maven repository.
Direct download
Download the latest release as a standalone ZIP containing JARs, documentation, and samples from the GroupDocs.Redaction for Java 26.10 release page.