muhammad.umar March 26, 20190 Comments

Configurable Redaction using an XML File

Configurable Redaction using an XML File

March 26, 2019


A configuration file defines the initial or commonly used parameters, options, settings or preferences applied to operating systems, infrastructure devices or applications in an IT context.

When the Need Arises

If you have large size data (may consist of multiple files of different file formats) or corporate sensitive data which need to be redacted without specifying the rules in your code.

What is the Solution

The GroupDocs.Redaction API provides the way to define a removal policy by writing the list of pre-configured redaction rules in an XML file. Hence, you do not need to specify the rules in your code. You can have as many policies, as you need to redact your documents.

The example of redaction policy XML file is as follows:

How to Apply Redaction Policy

The example below shows:

  • how to apply the redaction policy to all files by giving inbound folder
  • Save the output files to one of outbound folders
  • The successfully updated files and failed one will save to their respected folders
  • The current date and time is used as a part of output file name
  • The successfully updated files and failed one will save to their respected folders

The complete ready to run code sample is available on GitHub.

Share on FacebookTweet about this on TwitterShare on LinkedIn
Posted inGroupDocs.Redaction Product FamilyTags: , , ,
 

Related Articles