Skip to content

modern-pdf-lib


modern-pdf-lib / setTextRenderingModeOp

Function: setTextRenderingModeOp()

setTextRenderingModeOp(mode): string

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

Set the text rendering mode (Tr).

ValueMeaning
0Fill
1Stroke
2Fill then stroke
3Invisible
4Fill and clip
5Stroke and clip
6Fill, stroke, clip
7Clip

Parameters

mode

0 | 1 | 2 | 3 | 4 | 5 | 6 | 7

Returns

string

Released under the MIT License.