Browse our Products
If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.
Product Page | Docs | Demos | API Reference | Examples | Blog | Free Support | Temporary License
GroupDocs.Redaction for Node.js via Java is a document-sanitization API for permanently removing sensitive information. Redact text by exact phrase or regular expression, scrub or replace metadata, remove or rewrite annotations, black out image regions, delete whole pages, and rasterize the result so nothing redacted can be recovered — across Word, Excel, PowerPoint, PDF, images, and text formats through one unified Node.js API, with no MS Office, OpenOffice, or other external software required.
npm i @groupdocs/groupdocs.redaction
const redaction = require('@groupdocs/groupdocs.redaction');
const redactor = new redaction.Redactor('document.docx');
try {
redactor.apply(new redaction.ExactPhraseRedaction(
'confidential',
new redaction.ReplacementOptions('[REDACTED]')));
redactor.save();
} finally {
redactor.close();
}
Install the package from npm, set up a supported Node.js and JVM environment once, then call the redaction API from JavaScript. The library loads, redacts, and saves documents through a single Node.js surface — no Microsoft Office or third-party desktop tools required. Works on Windows, Linux, and macOS where Node.js and Java are available.
IOcrConnector (com.groupdocs.redaction.integration.ocr) to redact text recognized in images and scanned pages.IRedactionCallback to accept/reject each match.Format support matches GroupDocs.Redaction for Java. For capability details per format, see supported formats.
| Category | Formats |
|---|---|
| Word Processing | DOC, DOCX, DOCM, DOT, DOTX, DOTM, RTF, TXT, ODT, OTT |
| Spreadsheets | XLS, XLSX, XLSM, XLSB, XLT, XLTX, XLTM, CSV, TSV, TAB, ODS, OTS, NUMBERS |
| Presentations | PPT, PPTX, POTX, POTM, ODP, OTP |
| Fixed-Layout | |
| Images | BMP, JPG, JPEG, PNG, GIF, TIF, TIFF, JP2 |
| Web & Markdown | HTM, HTML, MD |
const redaction = require('@groupdocs/groupdocs.redaction');
const redactor = new redaction.Redactor('document.docx');
try {
// case-insensitive by default; pass true for case-sensitive
redactor.apply(new redaction.ExactPhraseRedaction(
'John Doe',
true,
new redaction.ReplacementOptions('[CUSTOMER]')));
redactor.save();
} finally {
redactor.close();
}
const redaction = require('@groupdocs/groupdocs.redaction');
const redactor = new redaction.Redactor('document.docx');
try {
redactor.apply(new redaction.RegexRedaction(
'\\d{2,}',
new redaction.ReplacementOptions('[NUMBER]')));
redactor.apply(new redaction.RegexRedaction(
'[\\w.%+-]+@[\\w.-]+\\.[A-Za-z]{2,}',
new redaction.ReplacementOptions('[EMAIL]')));
redactor.save();
} finally {
redactor.close();
}
const redaction = require('@groupdocs/groupdocs.redaction');
const java = require('java');
const Color = java.import('java.awt.Color');
const redactor = new redaction.Redactor('document.pdf');
try {
redactor.apply(new redaction.ExactPhraseRedaction(
'Top Secret',
new redaction.ReplacementOptions(Color.BLACK)));
redactor.save();
} finally {
redactor.close();
}
const redaction = require('@groupdocs/groupdocs.redaction');
const redactor = new redaction.Redactor('document.docx');
try {
redactor.apply(new redaction.EraseMetadataRedaction(redaction.MetadataFilters.All));
redactor.apply(new redaction.MetadataSearchRedaction('.*@acme\\.com', '[EMAIL]'));
redactor.save();
} finally {
redactor.close();
}
const redaction = require('@groupdocs/groupdocs.redaction');
const java = require('java');
const Point = java.import('java.awt.Point');
const Dimension = java.import('java.awt.Dimension');
const Color = java.import('java.awt.Color');
const redactor = new redaction.Redactor('scan.pdf');
try {
redactor.apply(new redaction.ImageAreaRedaction(
new Point(50, 60),
new redaction.RegionReplacementOptions(Color.BLACK, new Dimension(200, 80))));
redactor.save();
} finally {
redactor.close();
}
const redaction = require('@groupdocs/groupdocs.redaction');
const redactor = new redaction.Redactor('document.docx');
try {
redactor.apply(new redaction.RegexRedaction(
'\\d+',
new redaction.ReplacementOptions('[NUM]')));
const options = new redaction.SaveOptions();
options.setRasterizeToPDF(false);
redactor.save(options);
} finally {
redactor.close();
}
const redaction = require('@groupdocs/groupdocs.redaction');
const redactor = new redaction.Redactor('document.pdf');
try {
const info = redactor.getDocumentInfo();
console.log('Type:', info.getFileType());
console.log('Pages:', info.getPageCount());
console.log('Size:', info.getSize(), 'bytes');
} finally {
redactor.close();
}
The API works without a license in evaluation mode, with these limitations:
To remove these limitations, apply a license or request a temporary license:
const redaction = require('@groupdocs/groupdocs.redaction');
const license = new redaction.License();
license.setLicense('path/to/GroupDocs.Redaction.lic');
JAVA_HOMEjava / node-gyp bridge if npm install requires them| Issue | Fix |
|---|---|
| Trial limit / evaluation watermark | Apply a license — new License().setLicense(...) |
JAVA_HOME / JVM not found | Install JDK 8+ and set JAVA_HOME so the Node–Java bridge can find it |
npm install / node-gyp build failure | Install OS build tools required by node-gyp |
IncorrectPasswordException / PasswordRequiredException | Open with LoadOptions and the document password |
Also available for other platforms: .NET | Java | Python via .NET
Product Page | Docs | Demos | API Reference | Examples | Blog | Free Support | Temporary License
GroupDocs.Redaction GroupDocs.Total Node.js NPM Document-Redaction Text-Redaction PDF Metadata-Removal Security
Download `groupdocs-groupdocs.redaction-26.11.0.tgz` package. This .tgz package contains the same build that is available on NPM and can be installed locally.
Added: 17/11/2026
Downloads:
File Size: 39.17KB