fix_page_size
Resize all pages of a PDF to a specific width and height in points. Specify target dimensions and output file to standardize page sizes.
Instructions
Resize all pages to a specific width and height (in points).
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": {
"file": "<file>"
},
"name": "fix_page_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to the PDF file | |
| width | No | Page width in points (default 612 = US Letter) | |
| height | No | Page height in points (default 792 = US Letter) | |
| output_name | No | Output file path (defaults to same dir with suffix) |