Bates number a PDF
stamp_bates_numbersUse this when the user wants to Bates number a PDF, Bates stamp documents for a legal production, or add sequential document control numbers such as ACME000101 to each page. Takes one attached PDF, a prefix, start number, zero-padding digits (1-10), optional suffix and one of six positions, and returns a new PDF plus a CSV log of page number to Bates number, with the first and last Bates number. Each stamp is checked again in the new file before the link is given. Does not open password-protected PDFs, does not number across several files in one call (pass the next start number yourself), and does not draw non-Latin scripts. Do not use for simple page numbers (use stamp_page_numbers).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The PDF to Bates number, e.g. production-vol1.pdf. | |
| start | No | First Bates number, e.g. 101. Default 1. | |
| digits | No | Zero-pad the number to this many digits, 1 to 10, e.g. 6 gives 000101. Default 6. | |
| prefix | No | Text before the number, e.g. "ACME" or "SMITH-". Default none. | |
| suffix | No | Text after the number, e.g. "-CONF". Default none. | |
| 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-right. | |
| 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. 24 (default). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| check | Yes | ||
| notes | Yes | ||
| pages | Yes | ||
| position | Yes | ||
| downloads | Yes | ||
| font_size | Yes | ||
| last_bates | Yes | ||
| last_stamp | Yes | ||
| first_bates | Yes | ||
| first_stamp | Yes | ||
| output_name | Yes | ||
| stamped_pages | Yes | ||
| output_size_kb | Yes | ||
| expires_in_hours | Yes |