Reorder the pages of a PDF
pdf_reorderReorder PDF pages by specifying the new sequence, then write a new PDF with every page included exactly once. Use it to fix page order without losing content.
Instructions
Call this tool to write a new PDF with pages in the order you give. The order must name every page exactly once, so nothing drops by accident; use pdf_pages for a subset. Pro.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The source PDF | |
| order | Yes | The 1-based page numbers in their new order, e.g. [3,1,2] for a three-page file. Every page must appear exactly once | |
| out_path | Yes | Where to write the reordered PDF | |
| overwrite | No | Replace out_path if it exists. Default false |