The Apryse Fall 2026 Release is Here: Explore What's New

Redaction vs Sanitization:

What Each One Removes

Redaction permanently removes visible content from a PDF page: text, images and vector regions inside the marked areas. Sanitization permanently removes hidden, non-visual content from the file's internal structure: metadata, XFA, XMP, embedded scripts, form data and hidden layers. They are different operations, and a document that has been redacted but not sanitized can still carry extractable data.

What Redaction Removes

Redaction removes what a reader sees on the page. The PDF redaction library works in two steps. Redact annotations mark the regions or text to remove, either by hand or programmatically through text search and pattern matching. The apply step then destroys the text, image and vector content inside those regions.

Nothing sits behind a clipping path or an image mask. That is the line between true redaction versus visual masking. Once applied, redaction is permanent and irreversible.

What Sanitization Removes

Copied to clipboard

Sanitization removes what a reader cannot see but a program can extract. PDF sanitization strips metadata, XFA, XMP, embedded scripts, form data and hidden layers from the file's internal structure. The content on the page stays. Your team uses it to release a document without leaking its history or embedded data.

Side by Side: What Each Operation Touches

Copied to clipboard

Each row names one thing a PDF can hold. Each column shows whether the operation removes it.

What It Touches
Redaction
Sanitization
Visible page text
Removed inside marked regions
Not removed
Images and vector content
Removed inside marked regions
Not removed
Document metadata
Not removed
Removed
XFA
Not removed
Removed
XMP
Not removed
Removed
Embedded scripts
Not removed
Removed
Form field data
Not removed
Removed
Hidden layers
Not removed
Removed
Earlier incremental saves
Not removed
Removed

Where Each One Runs, and What It Costs to License

Redaction runs in the browser with the Apryse Web SDK and on your servers with the Apryse Server SDK. Sanitization runs only on the Server SDK. Sanitization is in the base package, and Redaction needs an add-on license on either surface.

A regulated workflow in financial services, healthcare, government or legal licenses the add-on on top of the base package. Read more on enterprise-grade redaction.

For server-side builds, follow server-side redaction in C# or server-side redaction in Java. The get-started guides are C# on .NET Framework and Java.

Surface and License
Redaction
Sanitization
Web SDK
Available
Not available
Server SDK
Available
Available
License model
Add-on license (Redaction Package)
Base package
Docs

When You Need Both

Most regulated workflows need both operations before a document leaves your system. Redaction handles what a reviewer sees. Sanitization handles what a script can pull from the file. Skip either one and the gap stays open: a redacted file still carries its metadata, and a sanitized file still shows every sensitive line.

Your app decides when a document is ready for release. The compliance redaction process covers the verify and release steps. For volume, redacting documents in bulk means your code owns the loop. The Server SDK provides no work queue, job scheduler or batch orchestration.

What is Still Extractable if You Only Redact

Copied to clipboard

Redaction clears the marked regions and nothing else. Metadata, XFA, XMP, embedded scripts, form data and hidden layers stay in the file. A reviewer sees a clean page, and a program reading the file still reads those structures. Earlier incremental saves also stay in the file, so a prior version of the redacted content can remain.

That matters when your pipeline extracts file-level data before sending a document to a model. Redaction alone leaves that data in reach. See PII removal before AI processing for that pipeline.

Redaction is Not Encryption Either

Copied to clipboard

Encryption and permission controls restrict access to content that is still in the file. Redaction removes the content. If a recipient must never read something, access control is not enough. Encryption is a separate capability from both operations on this page.

Frequently Asked Questions

Redaction permanently removes visible content from the page: text, images and vector regions inside the marked areas. Sanitization permanently removes hidden non-visual content from the file's internal structure, such as metadata, XFA, XMP, embedded scripts, form data and hidden layers. Redaction changes what you can see. Sanitization changes what you can extract.

In most regulated workflows, yes. Redaction alone leaves hidden structures intact, so a file can pass a visual check and still carry extractable data. Sanitization alone leaves the visible content in place.

No. Sanitization is a Server SDK capability. Redaction is available on both the Web SDK and the Server SDK. A browser-only integration can redact but cannot sanitize.

No. Sanitization is in the base Server SDK package. Redaction is the one that requires an add-on license, on either surface.

Yes, from the redacted regions. The apply step destroys the text, image and vector content inside them rather than hiding it with a clipping path or an image mask, and the operation is irreversible. Content outside those regions, and hidden non-visual data anywhere in the file, is untouched by redaction.

No. Encryption and permission controls restrict access to content that is still present in the file. Redaction removes the content. If the requirement is that a recipient must never be able to read something, access control is not sufficient.

Test Both Operations on One Server SDK Key

A Server SDK trial key covers Redaction and Sanitization. Use the Web SDK trial if you only need to redact in the browser.