Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
Created January 14, 2020 07:43
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/9233d7bda798cd2c05e21e19a3611b51 to your computer and use it in GitHub Desktop.
Save GroupDocsGists/9233d7bda798cd2c05e21e19a3611b51 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
using (Redactor redactor = new Redactor("\\Sample.docx", new LoadOptions(), new RedactorSettings(new RedactionDump())))
{
// Assign an instance before using Redactor
redactor.Apply(new ExactPhraseRedaction("John Doe", new ReplacementOptions("[personal]")));
redactor.Save();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment