Skip to content

modern-pdf-lib


modern-pdf-lib / applyRedactions

Function: applyRedactions()

applyRedactions(doc): void

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

Apply all pending redactions across all pages in a document.

For each redaction mark, this draws an opaque filled rectangle over the marked region. If overlay text is specified, it is drawn on top of the rectangle in a contrasting colour.

Parameters

doc

PdfDocument

The PDF document.

Returns

void

Released under the MIT License.