sempdf

Class: PdfSoftMaskBuilder

sempdf v1.9.1


sempdf / PdfSoftMaskBuilder

Defined in: src/document.ts:5902

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

Methods

path()

path(commands, style): void;

Defined in: src/document.ts:5910

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;

Defined in: src/document.ts:5922

Restores the most recently saved graphics state.

Returns

void


saveState()

saveState(): void;

Defined in: src/document.ts:5917

Saves the current graphics state.

Returns

void


transform()

transform(matrix): void;

Defined in: src/document.ts:5927

Adds a transformation matrix.

Parameters

ParameterType
matrixTransform

Returns

void

On this page