Skip to content

modern-pdf-lib


modern-pdf-lib / setWordSpacingOp

Function: setWordSpacingOp()

setWordSpacingOp(spacing): string

Defined in: src/core/operators/text.ts:113

Set the word spacing (Tw).

Parameters

spacing

number

Extra space (in unscaled text-space units) to add when a space character (0x20) is encountered.

Returns

string

Released under the MIT License.