Skip to Content
NexPDF

Redaction

Let users permanently remove text, images and annotations from PDFs in an Electron window with NexPDF, by area, by text or by sensitive-data pattern.

English

License module

Redaction needs the redaction module (Business tier and above).

Redaction in NexPDF is destructive: the text, images and annotations under each marked area are removed from the file, not just covered, and an opaque box is painted over it. The engine runs on the user's machine, so the unredacted document never leaves it.

The Redact mode

In the Redact mode (redaction) the user marks areas and then applies them all at once:

  • Mark area: drag on the page, or select text.
  • Find and mark: type a text, or a regular expression, and mark every match.
  • Find sensitive data: mark every email, phone number, card number, IBAN, Portuguese NIF, US SSN, IPv4 address, URL or date.
  • Fill: black or white boxes.
  • Apply redactions removes the content under every marked area, after a confirmation.

The marked areas are listed in the side panel, so a reviewer can check them before they are applied.

Offer it

{ "modeConfig": { "availableModes": ["viewer", "redaction"], "initialMode": "redaction" } }

Pass the configuration as the path of a JSON file; see Viewing pages.

Redaction cannot be undone once the file is saved or downloaded. Keep the original if you may need it.

From code

To redact in code, for example in a batch job, use the document API (openDocumentFile, then the calls of the Node.js SDK).

On this page