Create Load File
Creates a Concordance DAT and an Opticon OPT load file for a production folder, grouping each document's native, image and text files by Bates number.
Point the tool at a production folder and it builds the load files a review platform needs. Files are grouped into documents by name: IMAGES\ABC0001.pdf, NATIVES\ABC0001.xlsx and TEXT\ABC0001.txt become one document, ABC0001. The end Bates number and page count come from the image's real page count.
The DAT has one record per document with BegBates, EndBates, PageCount, NativePath, ImagePath, TextPath, FileName, FileExtension, FileSize, MD5Hash and DateModifiedUtc. The OPT has one line per imaged document, giving its page count. Nothing in the production is changed.
Use it when
- You have Bates-stamped PDFs (with or without natives and text) and need a DAT and OPT to serve with them.
- A production was assembled by hand and needs load files before it goes out.
- The other side's platform asks for a Concordance-style DAT and OPT.
How to run it
- Arrange the production in one folder, with the images, natives and text in folders such as IMAGES, NATIVES and TEXT, each file named by its Bates number.
- Choose that folder as Input and an Output folder outside it.
- Set Volume (for example PROD001) and, if needed, Path prefix.
- Choose the Encoding the receiving platform expects, and whether to Include MD5 hash.
- Click Run, read the notes, then Open report.
- Copy
loadfile.datandloadfile.optfrom the run folder into the production, renaming them if you wish.
Settings
Every setting has the same help beside it in the app. On the command line, pass each as --name value; ltk help load-file lists them.
Settings
| Setting | What it does | Type and default |
|---|---|---|
Volume--volume |
Volume name written in the OPT file, e.g. VOL001. Written in the OPT's volume field. It cannot contain a comma. |
textVOL001 |
Path prefix--path-prefix |
Text put in front of every file path in the DAT/OPT, e.g. .\ or VOL001\. Paths are relative to the input folder. Paths are written relative to the input folder, for example IMAGES\ABC0001.pdf. Put .\ or the volume folder name (such as PROD001\) here if the receiving platform expects paths to start that way. It cannot contain a comma. |
text empty |
Encoding--encoding |
Utf8 (Relativity and most platforms) or Ansi (older Concordance workflows). UTF-8 (with a byte-order mark) suits Relativity and most current platforms. ANSI is for older Concordance-style workflows; a path with characters ANSI cannot hold is listed in errors.csv. |
choice: Utf8, AnsiUtf8 |
Include MD5 hash--md5 |
Include an MD5 hash of each document's native (or image if no native). Hashes each document's native, or its image when there is no native. Turn it off to save time on a large production if the recipient does not need hashes. |
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 load-file.csv, errors.csv and manifest.json (see Run folders and manifests).
loadfile.dat: The Concordance DAT (þ quotes, ASCII 20 between fields), in the run folder. One record per document, in document ID order (numbers sorted naturally).loadfile.opt: The Opticon OPT, in the run folder: one line per document that has an image, with the volume, image path and page count. It is not written if no document has an image.load-file.csv: The same information as the DAT, one row per document, for checking in Excel.
Report columns
BegBatesEndBatesPageCountNativePathImagePathTextPathFileNameFileExtensionFileSizeBytesMD5HashDateModifiedUtc
Check the result
- Read the notes: they give the number of documents and pages written, and warn about paths that could not be written faithfully and documents with more than one native, image or text file of the same name.
- Look at errors.csv. A document whose image path or Bates number contains a comma is left out of the OPT; rename it and run again.
- Check that EndBates and PageCount look right for a few multi-page documents.
- Run Check Load File on the finished production with the load files in place.
- Folder names decide each file's role first: a folder whose name contains NATIVE holds natives; TEXT or OCR holds text; IMAGES, PDF or PDFS holds images. Elsewhere,
.pdf,.tif,.tiff,.jpg,.jpegand.pngare images,.txtis text and anything else is a native. So a native PDF in a NATIVES folder is not mistaken for an image. - EndBates is BegBates plus the page count, less one. This only works when the file name is a Bates number ending in digits; otherwise EndBates repeats BegBates.
- Every file in the input is used. Remove anything that is not part of the production first.
- Each file is one document. If a production has one TIFF per page (ABC0001.tif, ABC0002.tif…), each page becomes its own document; this tool expects one image file per document.
- If a document has two files of the same kind with the same name (for example two ABC0001 natives in different folders), only the first in folder order is used and a note says how many documents this affected.
From the command line
The command line is part of LitTechKit Pro. See Command line.
ltk run load-file --input "D:\Matter\Productions\PROD001" --output "D:\Matter\LoadFiles" --volume PROD001 --encoding Utf8
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.
- 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.
- Convert Load File: Converts load files: DAT, CSV, tab and Excel data files into each other, and OPT into LFP or back. Can also keep, order and rename fields, rewrite paths, set the volume and change the encoding.