PrizmDoc Viewer v13.11 Release - Updated
Perform Auto-Redaction
Developer Guide > PrizmDoc Server > How To Examples > Perform Auto-Redaction

Introduction

An auto-redaction is a multi-step process that finds matches of a given regular expression, then permanently removes the text and blacks out the displayed region for each match. The end result is a new PDF document with no traces of the text that matched the regular expression.

For application development in .NET, we recommend using the PrizmDoc Server .NET SDK instead of using the PrizmDoc Server REST API directly. See the How to Create a Redacted PDF topic in the .NET SDK documentation for an example of how to easily perform auto-redaction with the .NET SDK.

The following steps walk you through using the PrizmDoc Server REST API to perform auto-redaction.

Step 1: Upload Your Source Document

Step 2: Compose a Regular Expression

Step 3: Create Markup JSON from the Regular Expression

Before the actual redaction process can be started, the regular expression needs to be converted to a format it can understand. PrizmDoc uses a proprietary XML syntax to define markups used for redaction, which you can generate by sending a POST request that requires two inputs:

Step 4: Check Status of the RedactionCreator Resource

Step 5: Start the Markup Burning Process (Redaction)

Step 6: Check Status of the MarkupBurner Resource

Step 7: Download the Redacted Document