NPM Package/docs/components/pdf/rotate-pages
Rotate Pages
Rotate one or more pages in the active PDF with rotate-r and rotate-l using the SDK.
The rotate actions change the orientation of existing pages in the active PDF. Both actions use pageRange to identify the affected pages.
Use rotate-r for clockwise rotation and rotate-l for counterclockwise rotation.
Rotate actions are direct page edits and return standard success or failure results.
typescript
Examples
Example function showing how to rotate pages programmatically using the SDK:
typescript
Vanilla TS Integration
Open the focused demo to test page rotation live.
PDF Rotate Pages Demo
Focused live demo for rotate-r and rotate-l.
Preview opens in a large modal for zoom-friendly review.
