Skip to content
Guides

Rotate Pages

This example shows how to rotate pages:

javascript
// Rotate the first page 90 degrees clockwise, with each unit of rotation representing a 90-degree clockwise turn.
const pagesIndexToRotate = [0];
const rotation = 1;
docViewer.rotatePages(pagesIndexToRotate, rotation);