The
rotate plugin provides buttons to rotate the document clockwise or counterclockwise.
However, it is possible to rotate a document initially without using the plugin. Just simply pass the `initialRotation`
option:
import { Viewer } from '@react-pdf-viewer/core';
<Viewer initialRotation={90} defaultScale={1} />;
The value has to be divisible by 90.
- Rotate forward: 90, 180, 270
- Rotate backward: -90, -180, -270
See also