Crop or scale pages
pdf_resize_pagesCrop margins or scale PDF page content to resize pages. Choose pages and output a new PDF without overwriting originals.
Instructions
Crop a margin from each edge (mode crop, margin in points) or scale page content (mode scale, factor 0.1–4).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input": "<input>",
"mode": "<mode>",
"output": "<output>"
},
"name": "pdf_resize_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| input | Yes | Path to a PDF inside an allowed folder (absolute, or relative to the first allowed folder). | |
| pages | No | Page numbers or ranges, such as "1, 3-5". Omit for every page. | |
| factor | No | Scale factor (scale). | |
| margin | No | Points trimmed from each edge (crop). | |
| output | Yes | Path for the new PDF, inside an allowed folder. Must not exist yet; superPDF never overwrites files. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | ||
| pages | Yes | ||
| output | Yes |