add_margin_to_pdf
Add custom margins to a PDF by providing a file path and optional millimeter values for left, right, top, and bottom. The modified PDF is saved to disk.
Instructions
Add margins to a PDF using the PDF4me AddMargin API. Provide a local PDF path and optional margins in millimeters (margin_left/right/top/bottom, 0-100). Saves the resulting PDF to disk.
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": {
"pdf_file_path": "<pdf_file_path>"
},
"name": "add_margin_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| margin_top | No | ||
| output_dir | No | ||
| margin_left | No | ||
| margin_right | No | ||
| margin_bottom | No | ||
| pdf_file_path | Yes | ||
| output_file_name | No | ||
| request_doc_name | No |