Table of Contents

Class PdfRedactionRequest

Namespace
LMKit.Document.Pdf
Assembly
LM-Kit.NET.dll

Describes what to redact in a document. Areas, search terms, and pre-existing /Redact annotations can be combined in one request; everything matched is removed in a single pass.

public sealed class PdfRedactionRequest
Inheritance
PdfRedactionRequest
Inherited Members

Examples

Example 1: Redact every occurrence of two strings.

using LMKit.Document.Pdf;

var request = new PdfRedactionRequest(); request.SearchTerms.Add("John Doe"); request.SearchTerms.Add("4111 1111 1111 1111");

Example 2: Redact a fixed region on page 1.

using LMKit.Document.Pdf;
using LMKit.Graphics.Geometry;

var request = new PdfRedactionRequest(); request.Areas.Add(new PdfRedactionArea(pageIndex: 0, Rectangle.FromSize(left: 72, top: 90, width: 220, height: 30)));

Properties

ApplyExistingRedactAnnotations

Gets or sets whether pre-existing /Redact annotations carried by the document are applied and consumed as part of this request. Default: false.

Areas

Gets the explicit redaction areas.

CaseSensitiveSearch

Gets or sets whether term matching is case sensitive. Default: false.

SearchTerms

Gets the text strings to search for. Every match found in the document is redacted.

WholeWordSearch

Gets or sets whether term matching only accepts whole words. Default: false.

Share