Skip to content

modern-pdf-lib


modern-pdf-lib / concatMatrix

Function: concatMatrix()

concatMatrix(a, b, c, d, tx, ty): string

Defined in: src/core/operators/state.ts:109

Concatenate the given matrix with the current transformation matrix (cm).

The six operands define the matrix:

[ a  b  0 ]
[ c  d  0 ]
[ tx ty 1 ]

Parameters

a

number

Horizontal scaling / rotation.

b

number

Rotation / skew.

c

number

Rotation / skew.

d

number

Vertical scaling / rotation.

tx

number

Horizontal translation.

ty

number

Vertical translation.

Returns

string

Released under the MIT License.