Production

Bates Stamp

Stamps sequential Bates numbers, and an optional legend such as CONFIDENTIAL, on every page of a set of PDFs, writing stamped copies and a Beg/End Bates report.

PRO Command line: bates-stamp Version 1.0
A Pro toolIn the free edition it works on up to 25 documents per run, so you can try it on real work. Compare Free and Pro.

Bates Stamp numbers every page of every PDF in the input folder, one document after another, and writes stamped copies to the run folder. The originals are not changed. Each document's first and last numbers go into the report, ready for an index or load file.

Numbers are worked out for the whole set before any stamping starts, in folder order. The same input with the same settings always gets the same numbers, however many files are processed at once. The stamp is placed in the chosen corner as the page is displayed, so it sits correctly on rotated pages and on pages with a crop box, and the page size and rotation are left as they were.

Bates Stamp
Bates Stamp in LitTechKit
Bates Stamp after a run on demonstration data.

Use it when

How to run it

  1. Put the PDFs to be produced in one folder, in the order they should be numbered, and choose it as Input. Only .pdf files are stamped.
  2. Choose an Output folder outside the input folder.
  3. Set prefix, start and digits, for example ABC, 1 and 6 to produce ABC000001 onwards.
  4. Choose the position of the number and, if needed, type a legend.
  5. Choose naming: BegBates names each file after its first number; Original keeps the existing names and folders.
  6. Click Run, then read the notes for the range used and the next available number.
  7. Click Open report to check the Beg and End Bates of each document, and look at errors.csv.

Settings

Every setting has the same help beside it in the app. On the command line, pass each as --name value; ltk help bates-stamp lists them.

Settings

SettingWhat it doesType and default
Prefix
--prefix
Bates prefix, e.g. ABC or ABC_ (letters, digits, space, - _ . only).
Letters, digits, space, hyphen, underscore and full stop only; anything else stops the run before it starts. Include any separator you want in the prefix itself, e.g. ABC_.
text
PROD
Start
--start
First Bates number.
For a later tranche, use the Next available number from the notes of the previous run so the numbering carries on without a gap or overlap.
number
1
Digits
--digits
Number of digits, zero-padded (6 gives PROD000001).
Between 1 and 12. If the whole set needs more numbers than the digits allow, the run stops with a message saying the numbers ran out; increase digits and run again.
number
6
Position
--position
Where the Bates number goes on each page (as the page is displayed). choice: BottomRight, BottomCenter, BottomLeft, TopRight, TopCenter, TopLeft
BottomRight
Legend
--legend
Optional legend on every page, e.g. CONFIDENTIAL. Placed in the opposite corner of the same edge.
Plain keyboard characters only. It goes in the opposite corner of the same edge as the number (bottom-left when the number is bottom-right); with a centred number it goes at the centre of the other edge.
text
empty
Font size (pt)
--font-size
Text size in points.
Between 4 and 72 points. The number and legend are printed in black Helvetica.
number
10
Margin (pt)
--margin
Distance from the page edge in points (72 points = 1 inch).
Between 0 and 288 points, measured from the edge of the visible page. Increase it if the stamp sits over a footer or page number.
number
18
Naming
--naming
BegBates: name each stamped file after its first Bates number (all in one folder). Original: keep names and folders.
With BegBates every stamped file goes into one folder, named like ABC000001.pdf. Use Original when the folder structure (for example custodian folders) must be kept.
choice: BegBates, Original
BegBates
Hashes
--hashes
Hashes to record for each stamped file.
Each stamped file is written, then read back and checked against the chosen hashes; the Verification column records this.
choices: MD5, SHA1, SHA256
MD5,SHA1

Common settings

SettingWhat it doesType and default
Input required
--input
Folder (or single file) to read. It is opened read-only and never modified. folder
empty
Output required
--output
Folder for reports. Must not be inside the input folder. Each run gets its own sub-folder. folder
empty
Recurse
--recurse
Include sub-folders. yes/no
true
Extensions
--extensions
Only process these extensions (e.g. .pdf, .docx). Empty means the tool's default set. list
empty
Parallelism
--parallelism
Files processed at once. Use 1-2 for spinning disks or network shares. number
4

What you get

Each run creates its own folder inside the output folder, with the report bates-stamp.csv, errors.csv and manifest.json (see Run folders and manifests).

Report columns

Check the result

Tips
  • Number order follows the folder order of the input. If the order matters (for example by custodian, then date), arrange or rename the files first.
  • The stamp is added as real text, so it can be searched and is what Bates QC reads when it checks each page.
  • Keep the run folder's manifest.json with the production record: it holds the settings used and the hashes.
Watch out for
  • A failure during stamping leaves a gap in the numbering. Either fix the document and re-run the whole set, or record the gap in the production log.
  • Re-running with the same start number on a different set of files produces different documents with the same numbers. Always take the start from the previous run's notes when adding a tranche.
  • The free edition stamps up to 25 documents per run.

From the command line

The command line is part of LitTechKit Pro. See Command line.

ltk run bates-stamp --input "D:\Matter\Production 1\PDFs" --output "D:\Matter\Production 1\Stamped" --prefix ABC --start 1 --digits 6 --legend CONFIDENTIAL

Related tools