Skip to content

modern-pdf-lib


modern-pdf-lib / showTextArray

Function: showTextArray()

showTextArray(items): string

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

Show one or more text strings with individual glyph positioning (TJ).

Each element of items is either:

  • a string — literal text to show, or
  • a number — a horizontal adjustment in thousandths of a unit of text space (negative = move right, positive = move left).

Parameters

items

readonly (string | number)[]

Array of strings and numeric adjustments.

Returns

string

Released under the MIT License.