add_page_numbers
Stamp customizable page numbers onto PDF files by specifying starting number, page range, and placement (top/bottom, left/center/right).
Instructions
Stamp page numbers onto a PDF. Configure starting number, which pages to number, and placement (top/bottom + left/center/right).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | Which pages to number: "all" (default) or a range like "1-5" or list "1,3,5". | all |
| input_file | Yes | Path to the PDF file to stamp with page numbers. | |
| output_path | No | Optional output path. If it ends with the expected extension, the file is written there. If it is a directory, the file is placed inside with a timestamped name. Defaults to the same directory as the first input. | |
| starting_number | No | Number to use for the first stamped page. Default: 1. | |
| vertical_position | No | Vertical placement of the page number. Default: "bottom". | bottom |
| horizontal_position | No | Horizontal placement of the page number. Default: "center". | center |