NPM Package/docs/components/pdf/move-pages
Move Pages
Reorder pages in the active PDF using move-top, move-bottom, move-up, and move-down with the SDK.
The move actions reorder existing pages in the active PDF. All move actions use pageRange to identify which pages should move.
Choose the move action based on the destination behavior you need: top, bottom, up by one step, or down by one step.
- move-top: Moves the selected pages to the beginning of the document.
- move-bottom: Moves the selected pages to the end of the document.
- move-up: Moves the selected pages one position earlier.
- move-down: Moves the selected pages one position later.
All move actions share the same method parameter structure. Only the action value changes.
typescript
Examples
Example function showing how to move a page range programmatically using the SDK:
typescript
Vanilla TS Integration
Open the focused demo to test page move actions against a live PDF.
PDF Move Pages Demo
Focused live demo for move-top, move-bottom, move-up, and move-down.
Preview opens in a large modal for zoom-friendly review.
