Free plan

Bates Numbering

Stamp a running number on every page, like courts and law firms do
POST
/v1/pdfs/bates

About this tool

Bates numbering puts a running identifier on each page of a document, such as ACME-000123. You choose the text before and after the number, where the number starts, how many digits it has, the corner it goes in, and its size and colour. It is used by law firms and courts to keep track of pages. You can number all pages or only some.
For example, you number every page of a set of documents with CASE-000001 and up before sending them to a court.

How to use it

  1. Choose this tool.
  2. Add your PDF with Upload or drag and drop.
  3. Type the text before the number and the number to start from.
  4. Choose the corner for the label and how many digits to use.
  5. Press Generate, then download the PDF.

What you get back

You get a new PDF with a numbered label on each page, ready to download.
GOOD TO KNOW
A PDF in, a numbered PDF out. The label sits at the corner as the page is seen, also on turned pages. Counts as one file.
TEST IT LIVE

Try Bates Numbering in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
PDFs
Plan
Free
Method
POST
Endpoint
/v1/pdfs/bates
Tool ID
pdfs.bates
Authentication
API key
Accepts
PDF
Background jobs
Yes
Usage group
Pdf
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/pdfs/bates" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'prefix=ACME-' \
  -F 'start=1' \
  -F 'step=1' \
  -F 'file=@document.pdf'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.pdfs.bates({
    "prefix": "ACME-",
    "start": 1,
    "step": 1,
    "file": 'document.pdf'
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->pdfs()->bates([
    'prefix' => 'ACME-',
    'start' => 1,
    'step' => 1,
    'file' => 'document.pdf',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Stamp a running identifier on every page of a PDF, such as ACME-000123: a prefix, a number padded with zeros and a suffix, at the corner you choose, as courts and law firms number evidence.

Bates Numbering accepts PDF. You can send several files in one request.

Bates Numbering is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/pdfs/bates with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.