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.
Below is an example of redaction policy XML file (code properties mapping is obvious):
RedactionPolicy.xml
Replacement="foobar" /> Replacement="[red1]" columnIndex="1" worksheetIndex="2" /> Replacement="[red2]" wokrsheetName="Sample" /> Replacement="foobar" valueExpression="(metasearch)" keyExpression="" /> Replacement="foobar" /> You can use RedactionPolicy....actionType = "ReplaceString" replacement = "foobar" /> < exactPhraseRedaction...regularExpression = "(foo)bar1" replacement = "[red1]" columnIndex =...
Represents a dictionary of aliases....specified collection of alias/replacement pairs to this instance of...specified collection of alias/replacement pairs to this instance of...
Adds the specified collection of character Replacements to this instance of the CharacterReplacementDictionary....collection of character replacements to this instance of the...collection of character replacements to this instance of the...
Adds the specified pair of alias and associated text to this instance of the AliasDictionary....specified collection of alias/replacement pairs to this instance of...specified collection of alias/replacement pairs to this instance of...
All Classes Packages com.groupdocs.redaction com.groupdocs.redaction.configuration com.groupdocs.redaction.exceptions...... Replacement Redacted text was replaced with another...wait Enum Constant Detail Replacement public static final RedactionActionType...
Gets or sets the DecoderFallback object for the current Encoding object....best-fit fallback handler, which replaces bytes that cannot be decoded...some suitable replacement character. A replacement fallback handler...