Production

Court Book

Builds a court book (or appeal book) from a folder of PDFs: a hyperlinked index at the front, consecutive page numbers on every page, and bookmarks for each section and document.

PRO Command line: court-book 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.

Give the tool a folder of PDFs and, ideally, an Excel or CSV index listing them in order. It puts the index at the front, follows it with every document in that order, stamps a running court book page number on every page, and adds a bookmark for each section and document. Each index entry shows the document's page range and links to its first page.

Before anything is written, the finished PDF is read back and checked: every index link must lead to its document's first page and every numbered page must show its number. If a listed document is missing, is not a PDF or cannot be read, no court book is written and the report says which documents need fixing.

Long books can be split into volumes. Each volume starts with the full index, page numbers run on from one volume to the next, and index links to documents in other volumes open those volumes' files.

Court Book
Court Book in LitTechKit
Court Book after a run on demonstration data.

Use it when

How to run it

  1. Put the documents, as PDFs, in one folder (sub-folders are fine) and choose it as Input. Convert any Word or other files to PDF first.
  2. Choose an Output folder.
  3. Choose your Excel or CSV list of documents as Index file, or leave it empty to include every PDF in name order.
  4. Set the Title, then the page numbering: Index pages, Page prefix, Digits, Position, Font size (pt) and Margin (pt).
  5. If the book must be in volumes, set Pages per volume (for example 500).
  6. Click Run, read the notes, then open the court book from the run's files folder and click Open report to check every document was included.

Settings

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

Settings

SettingWhat it doesType and default
Index file
--index-file
Excel (.xlsx) or CSV list of the documents in order, with a File column (name or path in the input folder) and optionally Tab, Section, Description and Date. Empty: every PDF in name order, described by its file name, with sub-folders as sections.
Needs a File column (the file name or its path in the input folder; .pdf may be left off). Optional columns are Tab, Section, Description and Date; common variants such as No., File name, Title and Heading are recognised. Rows are used in the order they appear. A date stored as an Excel date becomes dd/MM/yyyy. Without an index, each PDF is described by its file name, tabs are numbered 1, 2, 3 and sub-folder names become sections.
file
empty
Title
--title
Title at the top of the index, and the PDF's file name. text
Court Book
Index pages
--index-pages
Numbered: the index pages are court book pages 1, 2… and the documents follow on. Unnumbered: the first document starts at page 1.
Numbered makes the index pages 1, 2… and the first document follows on. Unnumbered leaves the index without numbers so the first document starts at page 1.
choice: Numbered, Unnumbered
Numbered
Page prefix
--page-prefix
Text before each page number, e.g. CB (giving CB 1) or Court Book page. Empty: just the number.
Text before each number, for example CB gives CB 1. Only plain letters, digits, spaces and punctuation can be used.
text
empty
Digits
--digits
Zero-pad page numbers to this many digits (0: no padding).
Zero-pads numbers, so 3 gives CB 001. Use 0 for no padding.
number
0
Position
--position
Where the page number goes on each page (as the page is displayed). choice: BottomRight, BottomCenter, BottomLeft, TopRight, TopCenter, TopLeft
TopRight
Font size (pt)
--font-size
Size of the page numbers in points. number
11
Margin (pt)
--margin
Distance of the page numbers from the page edge in points (72 points = 1 inch). number
20
Keep documents' bookmarks
--bookmarks
Each document's own bookmarks go beneath its bookmark in the court book.
Keeps each document's own bookmarks, nested beneath that document's bookmark in the book.
yes/no
true
Pages per volume
--volume-pages
Split the court book into volumes of at most this many pages (e.g. 500), each starting with the full index; documents are never split, and index links to other volumes open those files. 0 (default): one volume.
0 makes one book. Any other value must be at least 10. Documents are never split: a volume closes when the next document would take it over the limit, and a document longer than the limit becomes a volume on its own. The limit counts document pages; the index at the front of each volume is extra.
number
0

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

Report columns

Check the result

Tips
  • If a document has form fields whose values must be visible, flatten it first with Flatten PDFs.
  • If two PDFs in different sub-folders have the same name, give the path in the index's File column; a bare name that matches more than one file is treated as missing.
  • The index uses a built-in font. Characters it cannot show appear as ?, and a note says so; check names with accents or symbols.
  • Remove passwords from encrypted PDFs first with Decryption; an encrypted document stops the book being built.
Watch out for
  • Keep all the volumes of a book in the same folder, with their file names unchanged: links to documents in other volumes open those files by name.
  • Only volume 1's index pages can be numbered; the index repeated at the front of later volumes carries no page numbers.
  • Nothing is written if any listed document has a problem. Fix the documents shown in Status and run again.

From the command line

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

ltk run court-book --input "D:\Matter\Court Book\Documents" --output "D:\Matter\Court Book\Out" --index-file "D:\Matter\Court Book\index.xlsx" --title "Appeal Book" --page-prefix AB --volume-pages 500

Related tools