Click or drag to resize
Pdf Library for .NET

PdfRedactionManagerAddRedaction(String, Boolean, Boolean, Int32) Method

Marks every occurrence of a text on the given pages for redaction. With pageIndexesnull it is the same as the overload without pages, which also reaches what the document stores off its pages; with pages named, only those pages are changed.

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

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.
pageIndexes  Int32
The zero-based indexes of the pages to search, or null for every page.
See Also