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.
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
- Before serving a production, to confirm the numbering is complete and consistent.
- After Bates Stamp, to confirm every page carries the right number.
- When you receive a production from another party or vendor and want to check it for gaps or duplicates before loading it.
How to run it
- Choose the production's image folder (the Bates-named PDFs or TIFFs) as Input. Sub-folders are included by default.
- Choose an Output folder outside the production.
- Leave check-stamps on to check every PDF page, or turn it off for a quicker numbering-only check.
- Click Run and read the notes: they give the document and page totals, each prefix's range, and a count of problems.
- Click Open report and filter the Issues and StampCheck columns for anything that is not blank or
OK. - Open
gaps.csvfor 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
| Setting | What it does | Type 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/notrue |
Common settings
| Setting | What it does | Type 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/notrue |
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. | number4 |
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).
bates-qc.csv: One row per file, sorted by prefix and number: Prefix, BegBates, EndBates, Pages, StampCheck (OK,Not checked, or the pages where the number was not found) and Issues.gaps.csv: One row per gap: the prefix, the first and last missing numbers, how many are missing, and the documents either side.
Report columns
RelativePathFileNamePrefixBegBatesEndBatesPagesStampCheckIssuesFullPath
Check the result
- Read the notes.
No numbering problems found.means no issues and no stamp problems; otherwise the note gives counts of each. - Filter Issues for gaps, overlaps, duplicates, padding differences and names that are not Bates numbers.
- Filter StampCheck for
Expected number not found on page(s) …and open those pages. - Look at
errors.csvfor files that could not be read, such as a damaged PDF or a TIFF whose page count is unknown. Their ranges are not checked.
- 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.pdfamongABC000001.pdffiles 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.
- 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
- Bates Stamp: Stamps sequential Bates numbers and an optional legend (e.g. CONFIDENTIAL) on every PDF page, correctly placed on rotated and cropped pages, writing stamped copies with a Beg/End Bates report.
- Create Load File: Creates a Concordance DAT and Opticon OPT load file for a production folder, grouping natives, images and text by Bates number.
- Check Load File: Checks a production's DAT and OPT/LFP load files: missing images, natives and text, broken lines, duplicate or overlapping Bates numbers, page counts that disagree, and files nothing refers to.
- Page Counts: Counts pages in PDFs and slides in PowerPoint files exactly, and reports Word's stored page count (as last saved).