Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
Created January 14, 2020 07:41
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/10d8f039ad5422701b10ae20cdc8da3f to your computer and use it in GitHub Desktop.
Save GroupDocsGists/10d8f039ad5422701b10ae20cdc8da3f 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
public class RedactionDump : IRedactionCallback
{
public RedactionDump()
{
}
public bool AcceptRedaction(RedactionDescription description)
{
Console.Write("{0} redaction, {1} action, item {2}. ", description.RedactionType, description.ActionType, description.OriginalText);
if (description.Replacement != null)
{
Console.Write("Text {0} is replaced with {1}. ", description.Replacement.OriginalText, description.Replacement.Replacement);
}
Console.WriteLine();
// you can return "false" here to prevent particular change during redaction process
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment