Skip to content

modern-pdf-lib


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?

optional colorSpace: "DeviceRGB" | "DeviceCMYK" | "DeviceGray"

Defined in: src/core/pdfPage.ts:541

Color space for the transparency group. Default: 'DeviceRGB'.


isolated?

optional isolated: 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?

optional knockout: 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.

Released under the MIT License.