Unify Logo Footer.svg
Unify Automations
Logo
Mask PII in PDF

Mask PII in PDF

Logo

2 mins READ

Mask PII in PDF detects and redacts personally identifiable information — including identifiers such as Social Security Numbers — from PDF documents, producing a sanitized copy safe for downstream sharing, indexing, or storage.

Overview

The Mask PII in PDF operation is a self-contained data-privacy utility in the Unify AI toolkit. It scans a PDF for configured PII patterns and replaces matching content with redaction marks, returning a masked version of the document. The original source file is not altered — only the output copy carries the redactions.

Use this operation before sharing, indexing, or storing PDFs that may contain sensitive personal data. Because masking acts on the document's embedded text layer, detection reliability is higher for digitally produced PDFs than for scanned or image-based pages.

Screenshot 2026-08-27 at 17.32.39 1.png
Screenshot 2026-08-27 at 17.32.39 1.png

Input

Field

Type

Required

Description

PDF File

file

Yes

The PDF document to scan for PII and redact.

PII Types

array

No

The categories of PII to detect and redact (for example, SSN). When omitted, the operation applies its default detection set.

Output

Returns the masked PDF with identified PII replaced by redaction marks. The document structure and all non-PII content are preserved in the output.

Notes

  • Masking is applied to the output document only — the original source file is not modified.

  • Social Security Numbers (SSNs) are an explicitly supported PII type.

  • Detection reliability is higher for embedded text than for text within scanned or image-based pages.

  • This operation does not store or transmit the detected PII values; it only redacts them from the output copy.

  • Combine with Read PDF Pages or Read Document in the same pipeline if you also need the plain text content from the masked document.

FAQs

Can it detect PII in scanned or image-based pages?

Detection is most reliable for embedded text. For scanned pages, consider running Read Document with OCR first to produce text, then applying PII masking logic in a subsequent step.

What PII types are supported?

SSNs are explicitly documented as a supported type. Additional PII categories may be configured via the PII Types field. Refer to your platform configuration for the full list of supported identifiers.

Does masking modify my original PDF?

No. The operation returns a masked copy of the document. Your original source file is not changed at any point in the operation.