Created
January 14, 2020 07:41
-
-
Save GroupDocsGists/10d8f039ad5422701b10ae20cdc8da3f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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