background_color
Change the background color of every page in a PDF file. Specify a hex color code and optionally set an output file path.
Instructions
Set a background color for all pages of a PDF.
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": "background_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to the PDF file | |
| color | No | Hex color like "#f0f0f0" (default: white) | |
| output_name | No | Output file path (defaults to same dir with suffix) |