PDF

Create Placeholders

Creates a one-page slip-sheet PDF for each file, such as "Document produced in native format" with the file name, in a folder structure that mirrors the input.

PRO Command line: create-placeholders 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.

Create Placeholders makes a simple one-page PDF for every file in the input. The page carries centred lines of text from a template, which can include the file's name, path, size and modified date. The placeholders are written to the run's files folder in the same folder structure as the input, and the input files themselves are not read for content or changed.

Placeholders are built the same way every time, with no dates or random values inside the PDF, so the same input and settings always give byte-identical files and the same MD5 hashes. Names are reserved in folder order, so clashes are numbered the same way on every run.

Use it when

How to run it

  1. Choose the folder of files that need placeholders as Input, and an Output folder outside it.
  2. Use extensions to limit the run to the native file types (for example .xlsx, .mp4). Empty means every file.
  3. Edit the template if the default wording is not right.
  4. Choose Font size (pt) and page-size.
  5. Turn on Name by full file name if files differ only by extension.
  6. Click Run, read the notes, then click Open report to see which placeholder belongs to which file.

Settings

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

Settings

SettingWhat it doesType and default
Template
--template
Text on the slip sheet, one line per line. Placeholders: {FileName} {Stem} {Extension} {RelativePath} {Size} {Modified}. \n also starts a new line.
Each line of the template is a line on the page; typing \n also starts a new line. Tokens are not case-sensitive: {FileName} (with extension), {Stem} (without), {Extension}, {RelativePath} (path below the input folder), {Size} (in bytes) and {Modified} (last modified date and time in UTC). A file name that happens to contain a token, such as {Size}.docx, is shown exactly as it is.
text (lines)
Document produced in native format {FileName}
Name by full file name
--name-by-full-name
Name each placeholder after the full file name (report.docx.pdf) so report.docx and report.xlsx don't collide. Off (default): report.pdf, with _(1), _(2)... for collisions.
Off: report.docx gives report.pdf, and a second report in the same folder gives report_(1).pdf. On: report.docx.pdf and report.xlsx.pdf, which makes the link to the native file obvious.
yes/no
false
Font size (pt)
--font-size
Text size in points. Long lines are wrapped; if the text is then too tall for the page it is made smaller (down to 6 pt).
Between 4 and 72 points. Long lines wrap, preferably after a space, slash, underscore or hyphen. If the text is still too tall for the page it is made smaller, down to 6 pt. If it does not fit even then, what fits is kept, the last line ends in ..., and a note names the file.
number
16
Page size
--page-size
Slip-sheet page size.
Match the page size of the rest of the production: A4 for Australian matters, Letter for US.
choice: A4, Letter
A4

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

Report columns

Check the result

Tips
  • Placeholders are ordinary PDFs, so they can be Bates stamped and included in a court book with the rest of the production.
  • Run the tool on the folder of natives only, or use extensions, so documents that are being imaged do not also get slip sheets.
Watch out for
  • The text uses the built-in Helvetica font, which only covers Western European characters. Other characters (for example Chinese or Arabic file names) appear as ? on the page; a note says so, and the report has the exact names.
  • Create Placeholders is a Pro tool. The free edition creates up to 25 placeholders per run.

From the command line

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

ltk run create-placeholders --input "D:\Matter\Production 1\Natives" --output "D:\Matter\Production 1\Slip sheets" --name-by-full-name --page-size A4

Related tools