Skip to content

zeropdf v1.3.0


zeropdf / PdfSoftMaskBuilder

Class: PdfSoftMaskBuilder

Defined in: src/document.ts:4238

Sub-builder for the contents of a luminosity soft-mask Form XObject. Supports path operations only.

Methods

path()

ts
path(commands, style): void;

Defined in: src/document.ts:4246

Adds a vector path to the soft-mask form. Painted regions whose luminosity is high (white) become opaque; black becomes transparent.

Parameters

ParameterType
commandsreadonly PathCommand[]
stylePathStyle

Returns

void


restoreState()

ts
restoreState(): void;

Defined in: src/document.ts:4258

Restores the most recently saved graphics state.

Returns

void


saveState()

ts
saveState(): void;

Defined in: src/document.ts:4253

Saves the current graphics state.

Returns

void


transform()

ts
transform(matrix): void;

Defined in: src/document.ts:4263

Adds a transformation matrix.

Parameters

ParameterType
matrixTransform

Returns

void

Released under the ISC license.