GroupDocs.Redaction for Node.js via Java 26.10 Release Notes
GroupDocs.Redaction for Node.js via Java 26.10 is the first npm release of the product. It includes OOXML compliance for Word saves, additional spreadsheet formats, custom PDF page-area redaction, DrawBox handling for text-only spreadsheets, and image-area positioning fixes. Platform-specific items that are not part of the Java 26.10 surface (for example .NET-only Options.Drawing / REDACTIONNET-799) are not included.
How to get the update
npm i @groupdocs/groupdocs.redaction@26.10.0
Full list of changes in this release
| ID | Summary | Category |
|---|---|---|
| REDACTIONNET-718 | Specify and preserve OOXML compliance when saving Word Processing documents | Feature |
| REDACTIONNET-802 | Add spreadsheet template formats XLT / XLTX / XLTM and TAB; improve Cells save-format mapping | Feature |
| REDACTIONNET-805 | Skip DrawBox (colored rectangle) redactions for text-only spreadsheets CSV / TAB / TSV | Fix |
| REDACTIONNET-594 | Custom redaction handler for PDF PageAreaRedaction (ICustomRedactionHandler) | Feature |
| REDACTIONNET-551 | Fix page-area image redaction positioning (embedded images with page placement and real size) | Fix |
See also: GroupDocs.Redaction for Java 26.10 Release Notes.
OOXML compliance for Word Processing (REDACTIONNET-718)
You can 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).
const redaction = require('@groupdocs/groupdocs.redaction');
const redactor = new redaction.Redactor('sample.docx');
try {
redactor.apply(new redaction.ExactPhraseRedaction(
'John Doe',
new redaction.ReplacementOptions('[personal]')));
const options = new redaction.SaveOptions();
options.setAddSuffix(true);
options.setRasterizeToPDF(false);
options.setRedactedFileSuffix('Strict');
options.getWordprocessingSaveOptions().setOoxmlCompliance(
redaction.WordProcessingComplianceLevel.Strict);
redactor.save(options);
} finally {
redactor.close();
}
Spreadsheet formats XLT / XLTX / XLTM / TAB (REDACTIONNET-802)
FileType exposes Excel template types and .tab. Spreadsheet save paths map these formats correctly (alongside existing ODS / OTS / XLSB support).
const redaction = require('@groupdocs/groupdocs.redaction');
const redactor = new redaction.Redactor('sample.xltx');
try {
redactor.apply(new redaction.ExactPhraseRedaction(
'Sensitive',
new redaction.ReplacementOptions('[redacted]')));
const options = new redaction.SaveOptions();
options.setAddSuffix(true);
options.setRasterizeToPDF(false);
redactor.save(options);
} finally {
redactor.close();
}
Skip DrawBox for CSV / TAB / TSV (REDACTIONNET-805)
Colored rectangle (DrawBox) replacements are not applicable to text-only spreadsheet formats. Those redactions are skipped with a clear status instead of attempting image-style styling.
Custom redaction for PDF PageArea (REDACTIONNET-594)
ReplacementOptions accepts an ICustomRedactionHandler. On each match the handler receives CustomRedactionContext and returns CustomRedactionResult (apply flag + replacement text). Currently supported for PDF PageAreaRedaction only.
const redaction = require('@groupdocs/groupdocs.redaction');
const java = require('java');
const optionsText = new redaction.ReplacementOptions('[replaced]');
const handler = java.newProxy('com.groupdocs.redaction.redactions.ICustomRedactionHandler', {
redact: function (context) {
const result = new redaction.CustomRedactionResult();
const text = context.getText();
if (text && text.indexOf('Lorem') >= 0) {
result.setApply(true);
result.setText(text.replace('Lorem', '[redacted-custom]'));
}
return result;
}
});
optionsText.setCustomRedaction(handler);
const redactor = new redaction.Redactor('sample.pdf');
try {
redactor.apply(new redaction.PageAreaRedaction(
java.import('java.util.regex.Pattern').compile('.*'),
optionsText));
redactor.save(new redaction.SaveOptions(false, 'Custom_Redaction_Result'));
} finally {
redactor.close();
}
Image area positioning (REDACTIONNET-551)
Embedded images that expose page placement and real pixel size are redacted using page coordinates, so PageAreaFilter / ImageAreaRedaction align with the visible image area when the bitmap size differs from the on-page shape.
Public API changes
Public API matches GroupDocs.Redaction for Java 26.10, including:
WordProcessingComplianceLevel(Ecma,Transitional,Strict)WordprocessingSaveOptionswithgetOoxmlCompliance/setOoxmlComplianceSaveOptions.getWordprocessingSaveOptions()ICustomRedactionHandler,CustomRedactionContext,CustomRedactionResultReplacementOptions.getCustomRedaction/setCustomRedactionFileType.getXLT(),getXLTX(),getXLTM(),getTAB()