Add Bates Numbers to PDF
Operator: Abdulla Al Fahad. How tools are built and checked
A Bates number gives every page in a production its own address. Once a set of documents has been stamped ABC000105 through ABC000144, a deposition outline, a privilege log or a letter to opposing counsel can point at one sheet of paper without anyone counting pages, and two parties holding copies of the same production can be sure they are looking at the same page.
This tool writes that identifier onto every page of one PDF: your prefix, then the sequence number padded with leading zeros to the width you set, then an optional suffix. It defaults to black Helvetica at 10 points in the bottom-right corner, 24 points in from the edges, and it re-stamps from the original file each time you change a setting, so you can check the first-page preview before saving exhibits-bates.pdf.
Key features
- Prefix, zero-padded sequence number and suffix, assembled as one label per page.
- Any start number from 0 to 9,999,999 and a padding width from 1 to 10 digits; numbers longer than the padding are written in full.
- Six positions (top or bottom, left, centre or right) with a margin from 10 to 72 points.
- Black Helvetica from 6 to 14 points, drawn as searchable text with no font file embedded.
- Each page's own size and rotation respected, so landscape scans stored with a /Rotate entry are stamped upright in the corner a reader sees.
- One PDF up to 50MB and 2,000 pages, processed entirely in the browser tab.
What changes between PDF and PDF with a Bates stamp on every page
The label for page n is prefix + (start + n − 1) + suffix, with the number left-padded with zeros to the Digits setting. Digits pads but never truncates: with Digits at 4 and a start of 1234567 the first page reads 1234567, not 4567, because a cut-down number would point at the wrong page.
Position is measured from the visible page area (the CropBox) in points, where 72 points make an inch. A bottom stamp has its baseline the margin's distance above the bottom edge; a top stamp has its baseline the margin plus the font size below the top edge. For right and centre placements the label's width is measured from the Helvetica metrics first, so the last character ends exactly at the right margin or the label sits exactly in the middle. Every page keeps its own size, so a production that mixes Letter, A4 and landscape pages gets each stamp in the right place for that page.
The stamp is real text appended to each page's content stream, not an image or an annotation. That means a viewer's Find box can jump to ABC000131, and the identifier survives printing and flattening. It also means the stamp is part of the page from then on; deleting annotations will not take it off again.
How it works
The file is checked for the PDF header and the 50MB limit and opened with pdf-lib. If it has more than 2,000 pages the run stops before anything is drawn. Helvetica is registered once, and the prefix and suffix are checked against the characters it can encode.
For each page in order the tool builds the label, measures its width at the chosen size, reads the page's visible box and rotation, works out the baseline point for the chosen corner or edge, and draws the text there turned so it reads upright. If a label is wider than the space between the two margins it is centred instead and a warning says how many pages were affected. The document is then saved and offered with -bates added to its name.
Common use cases
- Stamping a document production before it is served, so every page in the response to a request for production can be cited by number.
- Numbering a defendant's second production volume so it continues from where the first volume stopped, for example starting at 2,481 after a first volume ended at 2,480.
- Marking exhibits to a motion or a hearing bundle with a matter code such as SMITH-, so pages from different sources share one running sequence.
- Adding a confidentiality designation after the number with a suffix such as -CONF, for files governed by a protective order.
How to use this tool
- Type the prefix, the start number and the number of digits your production protocol calls for. Add a suffix only if the protocol requires one.
- Choose the PDF. It is stamped straight away and the first page appears in the preview.
- Adjust Position, Size and Margin until the stamp sits clear of existing footers on the preview.
- Check the result chips for the first and last Bates number, then download exhibits-bates.pdf and record the range in your production log.
Example
Source and settings
exhibits.pdf: 40 Letter pages (612 × 792 pt)
Prefix: ABC
Start number: 105
Digits: 6
Suffix: (empty)
Position: Bottom right
Size: 10 pt
Margin: 24 ptResult
exhibits-bates.pdf: 40 pages
Page 1: ABC000105
Page 2: ABC000106
...
Page 40: ABC000144
Each label is 53.92 pt wide at 10 pt, so it starts 534.08 pt from the
left edge and ends at 588 pt, 24 pt in from the right edge; baseline 24 pt
above the bottom edge.
Result chips: 40 pages stamped · ABC000105 to ABC000144Tips for best results
- Keep the prefix short and fixed for the whole matter. Party initials or a matter code of three to six characters reads well at 10 points and leaves room in a corner.
- Choose Digits for the largest number the matter will ever reach, not for this file. If the production may run past 99,999 pages, use 6 or 7 digits from the first volume, because changing the width later breaks alphabetical sorting in review platforms and spreadsheets.
- Put a separator in the prefix if you want one. Spaces and hyphens inside the prefix are kept, so ABC- produces ABC-000105 and ABC followed by a space produces ABC 000105; only spaces before the prefix and after the suffix are dropped.
- Raise the margin to 36 or 48 points when pages will be hole-punched or bound along the bottom, or when a scanner has left a dark border along the edge.
Edge cases to watch
The start number has to agree with your production index. If the cover letter or production log says this volume runs ABC000105 to ABC000144 and you leave Start at 1, every citation to the volume will be wrong. Check the result chips, which show the first and last number, against the log before you download.
Bates stamps can land on top of existing footers. Many documents already carry a page number, a firm's footer, a fax header or an earlier party's Bates number in the bottom corners; the tool does not detect any of them, so a stamp in the same place will overprint them. Compare the preview and move to another corner or a larger margin.
There is no white box behind the label. On a scanned page that is dark at the edges, or on a slide with a coloured footer band, black text can be hard to read.
The prefix and suffix can use only characters the standard PDF fonts encode: Latin letters, digits and common punctuation. A Greek letter or a CJK character stops the run with a message naming the character.
Running the tool twice on the same file stamps twice. If a stamped file needs a new range, go back to the unstamped original rather than stamping over the first numbers.
Common errors and how to fix them
- This PDF has more than 2,000 pages.
- Split the file with Split PDF and stamp each part separately. Set the second part's start number to one more than the last number on the first part so the sequence has no gap.
- The prefix contains a character which the PDF fonts cannot draw.
- Replace the named character with a plain Latin letter, digit or common punctuation mark. Curly quotes pasted from a word processor are fine; scripts such as Greek, Cyrillic or Chinese are not.
- This PDF is password-protected. Open it with Unlock PDF first, then try again.
- The stamp is written into the page content, which needs the file decrypted. Remove the open password with Unlock PDF, stamp the unlocked copy, and protect the result again if the production protocol requires it.
- The Bates number is wider than the space inside the margins.
- The label was centred and overhangs the margins on the pages listed. Shorten the prefix or suffix, lower the size or reduce the margin; this usually only happens on narrow pages such as receipts.
Best practices
- Stamp last. Merge, delete, reorder and rotate pages first, because any change to the page order after stamping leaves gaps or duplicates in the sequence.
- Record in the case log the Bates range each file received, next to its file name, for example exhibits-bates.pdf: ABC000105 to ABC000144. A later reprint or a re-sent copy can then be matched to the stamped version, and the next volume's start number comes from the log rather than from memory.
Why the zero padding matters
Review platforms, file explorers and spreadsheets often sort identifiers as text. As text, ABC10 sorts before ABC9, so an unpadded sequence comes back in the wrong order the first time someone sorts a list of cited pages. Padding every number to the same width, ABC000009 and ABC000010, makes text order and numeric order the same.
The width only works if it never changes within a matter. If a production stamped with 4 digits reaches 9999, the next page becomes ABC10000, which is wider and sorts between ABC1000 and ABC1001. Choosing 6 or 7 digits at the start avoids this, and because Helvetica draws every digit at the same width, a wider padding does not make stamps on one page look different from another.
Bates stamping: what to check by hand
The tool stamps every page of one PDF per run; it cannot skip a cover sheet or stamp only a range. When a production is split across several files, the continuity between them is yours to check: stamp the files one at a time and confirm that each file's first number is one more than the previous file's last number.
Look at narrow pages such as receipts or cheque images. A label wider than the space between the two margins is centred on the page instead of sitting in the chosen corner, and a warning gives the number of pages affected, so a long prefix or suffix on a mixed-size production can put some stamps in a different place from the rest.
Records of the production stay outside the PDF. The tool writes no load file, production log or index, and it does not redact, so the range for each volume has to be logged and privileged material removed before stamping. The stamp itself is black Helvetica, with no colour, font or background choices.
Frequently asked questions
What happens when the number needs more digits than I set?
It is written in full. With Digits at 4, page numbers 9998, 9999 and 10000 are stamped exactly like that; nothing is cut off. The labels simply become one character wider from that page onwards.
Can I search the PDF for a Bates number afterwards?
Yes. Each stamp is drawn as text in the standard Helvetica font, so typing ABC000131 into a PDF viewer's Find box jumps to that page, and text extraction tools pick the number up along with the rest of the page.
How do I continue numbering from a previous volume?
Set Start number to one more than the last number on the previous volume and keep the same prefix and digits. If volume 1 ended at ABC002480, start volume 2 at 2481 with Digits 6, and its first page will read ABC002481.