Skip to main content

Class: PdfSoftMaskBuilder

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

Methods

path()

path(commands, style): void;

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()

restoreState(): void;

Restores the most recently saved graphics state.

Returns

void


saveState()

saveState(): void;

Saves the current graphics state.

Returns

void


transform()

transform(matrix): void;

Adds a transformation matrix.

Parameters

ParameterType
matrixTransform

Returns

void