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
The PDF document.
Returns
void