A two-page services contract

A services agreement over two pages, ending in signature, name and date fields a reader fills in.

A services agreement between two parties: a letterhead, the parties named, numbered clauses set as running text, and a signature block for each side. Every clause is measured before it is placed: one that would not fit in the room left starts the next page instead, its heading and its text together.

The contract therefore runs to as many pages as it needs, and every footer says which page it is. The fields at the foot are what make the file an agreement rather than a picture of one: the reader signs the signature field and types the name and the date into the two boxes under it. Every field is drawn with a frame around it, so it is plain where to click.

What this example shows

  • Clauses kept whole: a heading is never stranded from its body.
  • Page count decided by the text, not fixed in advance.
  • A signature field, a name field and a date field per party.

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 A two-page services contract

What this document weighs

Before 172,715 bytes
Now 102,673 bytes
Saved 40.6 %

Not one mark on the page changed. 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 string a gate scanner reads.

Every example, by subject

Glossary

signature
A seal inside the document that proves two things at once: who approved it, and that not one byte has changed since. A reader shows it as a banner at the top of the page.