pdf_header_footer
Add headers and footers to PDF documents, using placeholders for current and total page numbers.
Instructions
Add headers and/or footers with dynamic placeholders: {page} for current page, {pages} for total.
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": {
"filePath": "<filePath>",
"outputPath": "<outputPath>"
},
"name": "pdf_header_footer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| align | No | Alignment (default: center) | center |
| color | No | Color (default: dark gray) | #4d4d4d |
| footer | No | Footer text. Use {page} and {pages} placeholders. | |
| header | No | Header text. Use {page} and {pages} placeholders. | |
| margin | No | Edge distance (default: 30) | |
| filePath | Yes | PDF file path | |
| fontSize | No | Font size (default: 9) | |
| outputPath | Yes | Output path |