Class RedactionProcessor
A document processor to add and apply redactions. The processor supports redaction based upon regular
expressions (Redaction
A redaction template is defined (AddRedactionTemplates(IEnumerable<RedactionTemplate>)) before either adding
redaction annotations to the document (Identify
The processor can take multiple calls to Identify
Inheritance
Namespace: PSPDFKit.Redaction
Assembly: PSPDFKit.dll
Syntax
public class RedactionProcessor : object
Methods
AddRedactionTemplates(IEnumerable<RedactionTemplate>)
Append multiple redaction templates to the processor to be used when processing documents.
Declaration
public RedactionProcessor AddRedactionTemplates(IEnumerable<RedactionTemplate> redactionTemplates)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Redaction |
redactionTemplates | A list of redaction templates. |
Returns
Type | Description |
---|---|
Redaction |
Create()
Creates an instance of a redaction processor
Declaration
public static RedactionProcessor Create()
Returns
Type | Description |
---|---|
Redaction |
An instance of a redaction processor |
IdentifyAndAddRedactionAnnotations(Document)
For the given Document, use the redaction templates held by this Redaction
Declaration
public void IdentifyAndAddRedactionAnnotations(Document document)
Parameters
Type | Name | Description |
---|---|---|
Document | document | The document to add the redaction annotations. |
Redact(Document)
For the given Document, use the redaction templates that the processor holds to identify and irreversibly remove the information from the document.
Declaration
public void Redact(Document document)
Parameters
Type | Name | Description |
---|---|---|
Document | document | The document to redact. |
Redact(Document, IWritableDataProvider)
For the given Document, use the redaction templates that the processor holds to identify and irreversibly remove the information from the document.
Declaration
public void Redact(Document document, IWritableDataProvider dataProvider)
Parameters
Type | Name | Description |
---|---|---|
Document | document | The document to redact. |
IWritable |
dataProvider | A data provider to write the redacted document. |