Click or drag to resize
Pdf Library for .NET

PdfRedactionManagerAddRedaction(String, Boolean, Boolean) Method

Marks every occurrence of a text, on every page, for redaction. The text is also taken out of what the document stores without showing it - properties, metadata, bookmarks, annotation and form field text, attachments.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public void AddRedaction(
	string text,
	bool caseSensitive,
	bool wholeWordsOnly
)

Parameters

text  String
The text to remove.
caseSensitive  Boolean
True to match the text's letter case exactly.
wholeWordsOnly  Boolean
True to match only whole words, so that "art" does not match inside "partner".
See Also