Skip to content

PdfJsUtil.normalizeRect method

PdfJsUtil › normalizeRect

Unofficial

Reorders the corners of a rectangle so that the first corner is the lower left one.

Signature:

normalizeRect(rect: number[]): number[]

Parameters:

ParameterTypeDescription
rectnumber[]The rectangle as [x1, y1, x2, y2].

Returns: number[]The normalized rectangle as [x1, y1, x2, y2].