One letter each, in one file

Four personal letters behind a contents sheet. No letter names a page number: each recipient takes the sheets that follow, as many as are needed, and every line of the contents leads to the recipient.

A mailing goes out: four letters, four different customers, one file. The company that folds them and puts them into envelopes has to know where each letter starts and how many sheets it runs to. That normally comes on a work sheet beside the file, and the day the two stop agreeing, somebody receives a letter written for somebody else.

Here the file says it itself. No letter carries a page number, and none had to: each recipient simply takes the sheets that follow, as many as are needed — the first takes two, an extra sheet going with it, the other three take one apiece. Every line of the contents sheet at the front leads to the recipient rather than to a sheet, so a letter that gains a page leaves everything above it alone and the contents stay right. The company that fills the envelopes reads the same file to know where to cut and what to fold.

What this example shows

  • Four letters, one for each customer, behind one contents sheet.
  • No page numbers: each recipient takes the sheets that follow.
  • A line of the contents leads to the recipient, not to a sheet.

The code, in full

The same document is written twice, once in each language. Both files are shown in full, with the code coloured on the server, and can be copied in one click.

The document itself

The same document is written in each of these languages. Open the one you want to look at.

Open the document in English Open the document in French

Read the Rust source Read the Python source

First page of One letter each, in one file

What this document weighs

This document weighs 48,685 bytes.

The team wrote this example after measuring the documents above, so there is no earlier figure to set beside it. See every document measured.

Examples near this one

A commercial invoice

A commercial invoice: letterhead, logo, a billed-lines table, totals, and a QR code that pays it by SEPA transfer.

A delivery note

The note that travels with the goods: a barcode against each article, a box the receiver ticks, and the consignment's own code.

A payslip

A payslip: eighteen contribution lines with employee and employer shares, the month against the year to date.

A landscape certificate

A landscape certificate whose border and seal are drawn line by line rather than placed as pictures.

A boarding pass

A boarding pass carrying the IATA BCBP line a gate scanner reads.

Every example, by subject