Skip to content

modern-pdf-lib


modern-pdf-lib / rotateAllPages

Function: rotateAllPages()

rotateAllPages(doc, angle): void

Defined in: src/core/pageManipulation.ts:381

Rotate all pages in the document by the specified angle.

Parameters

doc

PdfDocument

The PdfDocument to modify.

angle

number

Rotation angle in degrees (must be a multiple of 90).

Returns

void

Released under the MIT License.