pdf_page_numbers
Add Page Numbers — Add page numbers to a PDF at a specified position (top/bottom, left/center/right). [category: pdf]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | PDF up to 25MB. Password-protected input is rejected 400 — run pdf_unlock first. | |
| color | No | Hex color #rrggbb. | #333333 |
| start | No | Starting number. Field name is 'start' — not 'start_number'. | |
| format | No | Number template with {page} and {pages} tokens. | Page {page} |
| fontSize | No | Does NOT clamp — anything below 6 or above 72 silently RESETS to the default 10. | |
| position | No | Short codes ONLY: bc=bottom-center, bl=bottom-left, br=bottom-right, tc=top-center, tl=top-left, tr=top-right. Long names like 'bottom-right' are NOT recognized and silently fall back to bottom-center. | bc |
| skipLast | No | Skip numbering the last page. | |
| pageRange | No | Only number these pages, e.g. '2-5,8'. Empty = all pages. | |
| skipFirst | No | Skip numbering the first page. | |
| fontFamily | No | Outside the enum it silently becomes Helvetica. Latin-1 fonts — a 'format' template with CJK/Cyrillic/emoji is refused 400. | Helvetica |
| romanNumerals | No | Render numbers as roman numerals. | |
| outputFilename | No | Optional custom output filename. |