Reorder the pages of a PDF
pdf_reorderCall 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 | Name of an uploaded PDF (pdf_upload), or one this server wrote earlier | |
| 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 | Name for the reordered PDF; it comes back as a download link valid for one hour | |
| overwrite | No | Replace out_path if it exists. Default false |