Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
Created January 14, 2020 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GroupDocsGists/860d930bd84be4dfb4970b4e48601e29 to your computer and use it in GitHub Desktop.
Save GroupDocsGists/860d930bd84be4dfb4970b4e48601e29 to your computer and use it in GitHub Desktop.
// For complete examples and data files, please go to https://github.com/groupdocs-redaction/GroupDocs.Redaction-for-.NET
<?xml version="1.0" encoding="utf-8"?>
<redactionPolicy xmlns="http://www.groupdocs.com/redaction">
<regexRedaction regularExpression="(dolor)" actionType="ReplaceString" replacement="foobar" />
<exactPhraseRedaction searchPhrase="dolor" caseSensitive="true" actionType="DrawBox" color="Red" />
<cellColumnRedaction regularExpression="(foo)bar1" replacement="[red1]" columnIndex="1" worksheetIndex="2" />
<cellColumnRedaction regularExpression="(foo)bar2" replacement="[red2]" wokrsheetName="Sample" />
<eraseMetadataRedaction filter="All" />
<metadataSearchRedaction filter="Title, Author" replacement="foobar" valueExpression="(metasearch)" keyExpression="" />
<annotationRedaction regularExpression="(anno1)" replacement="foobar" />
<deleteAnnotationRedaction regularExpression="(anno2)" />
<imageAreaRedaction pointX="15" pointY="17" width="200" height="10" color="#AA50FC" />
<imageAreaRedaction pointX="110" pointY="120" width="60" height="20" color="Magenta" />
</redactionPolicy>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment