Table of Contents

Method FromRegion

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

FromRegion(TextRegion)

Builds redaction areas from a matched text region, one area per contributing text element so the redaction hugs the matched glyphs. Falls back to the region's bounding box when the region carries no elements.

public static IReadOnlyList<PdfRedactionArea> FromRegion(TextRegion region)

Parameters

region TextRegion

The matched region, for example a TextMatch.

Returns

IReadOnlyList<PdfRedactionArea>

The redaction areas covering the region.

Exceptions

ArgumentNullException

Thrown when region is null.

ArgumentException

Thrown when the region has no usable geometry.

Share