modern-pdf-lib / TransparencyGroupOptions
Interface: TransparencyGroupOptions
Defined in: src/core/pdfPage.ts:527
Options for transparency groups.
Transparency groups allow a set of drawing operations to be composited as a single unit before being blended with the page content.
Properties
colorSpace?
optionalcolorSpace:"DeviceRGB"|"DeviceCMYK"|"DeviceGray"
Defined in: src/core/pdfPage.ts:541
Color space for the transparency group. Default: 'DeviceRGB'.
isolated?
optionalisolated:boolean
Defined in: src/core/pdfPage.ts:532
When true, the group is composited against a fully transparent backdrop rather than the existing page content. Default: true.
knockout?
optionalknockout:boolean
Defined in: src/core/pdfPage.ts:537
When true, earlier objects in the group are knocked out (replaced) by later objects, rather than composited on top. Default: false.