PDF Generation Template Editor
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
This example shows how to rotate pages:
// 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);