GroupDocs.Redaction for Node.js via Java

View as MarkdownMarkdown

Set up your AI agent

Give your coding agent live access to the GroupDocs documentation and API reference through the GroupDocs Docs MCP server — no install, no API key. Learn more

claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcp

Also process documents locally

The GroupDocs.Redaction MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.

claude mcp add groupdocs-redaction -- dnx GroupDocs.Redaction.Mcp --yes
Folders, licensing and more →
groupdocs-redaction-nodejs-java-home

Release notes Package repository

GroupDocs.Redaction for Node.js via Java brings the GroupDocs.Redaction for Java API to Node.js so you can build on-premise apps that permanently remove or mask sensitive content without sending files to a third-party service.

Work with PDF, Word, Excel, PowerPoint, images, and other supported formats. Apply text, metadata, annotation, spreadsheet, and image-area redactions, optionally with page filters or OCR for text on images. Save in the original format or as a rasterized PDF when you need irreversible page images.

Install from npm (@groupdocs/groupdocs.redaction), point JAVA_HOME at a supported JDK, and call the same Java API surface from JavaScript.

Quick example

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]')));
  redactor.save();
} finally {
  redactor.close();
}

sample.docx is the sample file used in this example. Click here to download it.