Three statements in one file

Four sheets holding three customer statements. Each one claims the sheets it runs to, states who it is for and how many copies are owed, and carries its own data file.

A print shop receives one PDF of four sheets. Nothing drawn on them says that it holds three customer statements rather than one long one, nor that the first customer is owed two copies and the third three. That usually arrives in a job ticket beside the file, and the day the ticket and the file stop agreeing, the wrong statement goes into the wrong envelope.

Here the file says it itself. Each statement claims the sheets it runs to, states who it is for, the customer number, the town it is sent to, how many copies are owed and the day it was posted, and carries its own data file. The first statement runs to two sheets, its terms of payment following it; the other two are a sheet each. A reader shows one document of four pages; a press reads three statements.

What this example shows

  • Three statements in one file, each claiming the sheets it runs to.
  • Who a statement is for, its town, and how many copies are owed.
  • A data file per statement, belonging to it rather than to the file.

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 Three statements in one file

What this document weighs

This document weighs 47,975 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