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 move pages:
// Move the first page of the document to the second page.
const pagesToMove = [1];
const insertBeforeThisPage = 3;
await documentViewer.getDocument().movePages(pagesToMove, insertBeforeThisPage);