resize_pages
Change PDF pages to a standard paper size or custom dimensions, scaling each page's content to fit and centering it with proportions kept.
Instructions
Change pages to a paper size (a3, a4, a5, letter, legal, tabloid) or a custom width and height in unit "pt", "in" or "mm", scaling each page's content to fit (proportions kept, centred). orientation "auto" keeps each page's own (landscape pages get a landscape sheet), or force "portrait"/"landscape". Links, form fields and comments move with the content (ones outside a crop stay hidden); scroll positions of bookmarks and links that point into resized pages are not adjusted. Needs the owner password if the PDF forbids changes, or forbids changing comments and pages being resized have any. Signed PDFs are refused.
Any password argument can be "ask": the user then types it on a local page, so it never passes through the chat.
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_path": "<input_path>"
},
"name": "resize_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| unit | No | pt | |
| pages | No | ||
| width | No | ||
| height | No | ||
| password | No | ||
| overwrite | No | ||
| input_path | Yes | ||
| orientation | No | auto | |
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | Yes | ||
| width | Yes | ||
| height | Yes | ||
| output | Yes | ||
| scales | Yes | ||
| password_protected | Yes | ||
| user_password_changed | Yes | ||
| permissions_restricted | Yes |