Skip to content

modern-pdf-lib


modern-pdf-lib / markForRedaction

Function: markForRedaction()

markForRedaction(page, options): void

Defined in: src/core/redaction.ts:75

Mark a rectangular region on a page for redaction.

This does not immediately modify the page. Call applyRedactions to draw the redaction rectangles.

Parameters

page

PdfPage

The page to mark.

options

RedactionOptions

The redaction options.

Returns

void

Released under the MIT License.