The GroupDocs.Redaction API provides the mechanism to configure redactions in XML and apply them to any document as a single redaction profile.
Load RedactionPolicy using RedactionPolicy.Load(@"C:\RedactionPolicy.xml")
Get Inbound files path using Directory.GetFiles().
- Perform redaction using Document.RedactWith(RedactionPolicy.Redactions) on each file.
Save redacted documents.
Configuring Redaction Policies
If you have a corporate sensitive data removal policy as a list of redaction rules, you don't need to specify them in your code. You can specify an XML document with a list of pre-configured redactions. You can have as much policies, as you need to redact your documents.
Below is an example of redaction policy XML file (code properties mapping is obvious):