Tag Archives: .NET Redaction API

Find and Replace Words in Documents using C#

There could be many reasons to replace a word or phrase in the document. Whether you want to erase the sensitive content before publically sharing the document or you want to hide/remove all the private information like email IDs or Social Security Numbers, you need to redact the document content. This article guides you on how to redact PDF, Word, or other documents programmatically in your .NET applications using C#. We will separately discuss how to redact by hiding the text and how to find and replace the text, words, or phrases using different techniques.

The following topics are covered in this article:

  • .NET API for Replacing Text
  • Find & Replace Words or Phrase
  • Find & Replace Case-Sensitive Word or Phrase
  • Replace Text using Regular Expressions (RegEx)
  • Replace the Text with Colored Box
Posted in GroupDocs.Redaction Product Family | Tagged , , , ,