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.
IRedactionCallback to accept/reject each match.For a complete list, see supported formats.
| Category | Formats |
|---|---|
| Word Processing | DOC, DOCX, DOCM, DOT, DOTX, DOTM, RTF, TXT, ODT, OTT |
| Spreadsheets | XLS, XLSX, XLSM, XLSB, CSV, TSV, ODS, OTS |
| Presentations | PPT, PPTX, ODP |
| 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 {
redactor.apply(new redaction.ExactPhraseRedaction(
'John Doe',
true, // case-sensitive
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();
}
| Product Home | Documentation | Blog | Code Samples | Free Support | Temporary License | Pricing |
GroupDocs.Redaction GroupDocs.Total Node.js NPM Document-Redaction Text-Redaction PDF Metadata-Removal Security