
Organize PDF Pages API
Reorder, rotate, delete and duplicate PDF pages by dragging thumbnails, add pages from other PDFs, and save. Works in your browser with no upload.
All API requests require a valid API key passed in the Authorization header as a Bearer token.
20 requests per minute
1 endpoint available
Overview
Build a new PDF from a page list: reorder pages, rotate them, duplicate them, delete them (leave them out of the list), and combine pages from several PDFs.
The page list
The pages field is a JSON array. Each entry is either a page number of the first file (3) or an object {"file": 1, "page": 2, "rotate": 90}:
file: which uploaded PDF, numbered from 0 in the order sent. Default 0.page: page number in that file, starting at 1.rotate: extra clockwise rotation, 0, 90, 180 or 270. Default 0.
Example: [3, 1, {"page": 2, "rotate": 90}] puts page 3 first, then page 1, then page 2 turned a quarter turn, and drops every other page.
Limits
- Up to 20 PDFs of 25 MB each, and at most 500 entries in the page list.
- Pages that don't exist, password-protected or damaged PDFs return 422.
Endpoints
https://opentools.ca/api/v1/tools/organize-pdfRequest Body
Content-Type: multipart/form-data
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | file | Optional | One PDF to organize. Send this or files. |
| files | file[] | Optional | Several PDFs (up to 20), numbered from 0 in the order sent. Used when file is not sent. |
| pages | string (JSON array) | Required | The output pages in order. Each entry is a 1-based page number of the first file, or {"file": number, "page": number, "rotate": 0|90|180|270}. |
Response Example
The new PDF file (Content-Type: application/pdf, filename <name>-organized.pdf).Error Codes
Code Examples
curl -X POST https://opentools.ca/api/v1/tools/organize-pdf \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@scan.pdf" \
-F 'pages=[3, 1, {"page": 2, "rotate": 90}]' \
-o scan-organized.pdfRather use it in your browser? Open the Organize PDF Pages