modern-pdf-lib / RedactionOptions
Interface: RedactionOptions
Defined in: src/core/redaction.ts:30
Options for marking a region for redaction.
Properties
color?
optionalcolor:object
Defined in: src/core/redaction.ts:36
Colour for the redaction rectangle (default: black).
b
b:
number
g
g:
number
r
r:
number
overlayText?
optionaloverlayText:string
Defined in: src/core/redaction.ts:34
Optional text to overlay on the redacted area.
rect
rect: [
number,number,number,number]
Defined in: src/core/redaction.ts:32
The rectangle to redact: [x, y, width, height].