Production

Bates QC

Checks a production whose files are named by their first Bates number for gaps, overlaps, duplicates and padding problems, and that every PDF page shows the number it should.

PRO Command line: bates-qc 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 QC reads a production in which each document is named after its Beg Bates number, such as ABC000001.pdf. It counts the pages of each PDF or TIFF to work out the document's End Bates, then compares every document with the next to find missing numbers, overlapping ranges, repeated numbers and inconsistent zero-padding. It also flags files whose names do not end in a number. JPEG and PNG images count as one page.

With check-stamps on, it also reads the text of every PDF page and checks that the expected Bates number appears on it, so unstamped or mis-stamped pages are found. Nothing in the production is changed: the tool only reports.

Use it when

How to run it

  1. Choose the production's image folder (the Bates-named PDFs or TIFFs) as Input. Sub-folders are included by default.
  2. Choose an Output folder outside the production.
  3. Leave check-stamps on to check every PDF page, or turn it off for a quicker numbering-only check.
  4. Click Run and read the notes: they give the document and page totals, each prefix's range, and a count of problems.
  5. Click Open report and filter the Issues and StampCheck columns for anything that is not blank or OK.
  6. Open gaps.csv for a list of the missing number ranges.

Settings

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

Settings

SettingWhat it doesType and default
Check stamps
--check-stamps
Also read every PDF page and check it shows the Bates number expected for that page (finds unstamped or mis-stamped pages). Slower on large productions.
Reads every page of every PDF, so it takes longer on large productions. A page passes if the expected number appears anywhere in its text, ignoring spacing and letter case. TIFF and other image files are always reported as Not checked, as are files whose names are not Bates numbers.
yes/no
true

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-qc.csv, errors.csv and manifest.json (see Run folders and manifests).

Report columns

Check the result

Tips
  • Each prefix is checked as its own sequence, so a production with more than one prefix gets a separate range for each in the notes.
  • Padding is compared with what most documents with the same prefix use, so a few files named ABC0008.pdf among ABC000001.pdf files are flagged.
  • A duplicate is a second file with exactly the same Beg Bates number as an earlier one, for example the same file in two sub-folders. Point Input at the image folder only, not a folder that also holds copies.
Watch out for
  • The tool trusts the file name as the Beg Bates number and the page count as the length. A document named with the wrong number will show as a gap or overlap rather than a naming error.
  • The stamp check reads the PDF's text. A Bates number that is only part of a scanned image (not text) will be reported as not found; check those pages by eye.
  • The free edition checks up to 25 documents per run.

From the command line

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

ltk run bates-qc --input "D:\Matter\Production 1\IMAGES" --output "D:\Matter\QC" --check-stamps true

Related tools