add_header_footer
Add custom headers and footers to PDF pages, using placeholders for page numbers and total pages. Specify text and font size to annotate documents.
Instructions
Add header and/or footer text to each page. Supports {page} and {total} placeholders.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to the PDF file | |
| footer | No | Footer text (use {page} and {total} for numbers) | |
| header | No | Header text (use {page} and {total} for numbers) | |
| font_size | No | Font size in points (default 10) | |
| output_name | No | Output file path (defaults to same dir with suffix) |