Click or drag to resize
Pdf Library for .NET

PdfRedactionManagerAddRedaction(Regex, Int32) Method

Marks every match of a regular expression 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(
	Regex pattern,
	int[] pageIndexes
)

Parameters

pattern  Regex
The expression.
pageIndexes  Int32
The zero-based indexes of the pages to search, or null for every page.
See Also