Number PDF pages
stamp_page_numbersUse this when the user wants to add page numbers to a PDF, number the pages of a PDF, put "Page 1 of 10" in a footer or header, or skip numbering the cover page. Takes one attached PDF, a format with {n} (this page's number) and optional {total} (the last number), one of six positions, start number, pages to skip at the start, font size and margin, and returns a new PDF. Each stamp is checked again in the new file before the link is given. Does not open password-protected PDFs, does not draw non-Latin scripts or emoji, and does not change the page content under the number. Do not use for Bates numbers (use stamp_bates_numbers).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The PDF to number, e.g. report.pdf. | |
| format | No | Text with {n} and optional {total}, e.g. "Page {n} of {total}" (default), "{n}", "{n}/{total}" or "- {n} -". | |
| position | No | Where the text goes on each page as viewed: top-left, top-center, top-right, bottom-left, bottom-center, bottom-right. Default bottom-center. | |
| font_size | No | Font size in points from 6 to 36, e.g. 10 (default). | |
| margin_pt | No | Distance from the page edge in points from 6 to 144, e.g. 36 (half an inch, default). | |
| skip_first | No | How many pages at the start get no number, e.g. 1 for a cover page. Default 0. | |
| start_number | No | Number for the first numbered page, e.g. 1 (default). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| check | Yes | ||
| notes | Yes | ||
| pages | Yes | ||
| format | Yes | ||
| position | Yes | ||
| downloads | Yes | ||
| font_size | Yes | ||
| last_stamp | Yes | ||
| first_stamp | Yes | ||
| output_name | Yes | ||
| skipped_pages | Yes | ||
| stamped_pages | Yes | ||
| output_size_kb | Yes | ||
| expires_in_hours | Yes |