A payslip

A payslip goes out every month, for every employee, and its shape is not yours to choose: the law says what has to appear on it and the reader is used to seeing it in one particular order. That makes it the densest grid an ordinary business prints — a hundred figures on one sheet, any of which somebody may be asked to explain.

Not one figure on this page was typed in by hand: every one of them comes out of the gross pay at the top, so the whole sheet can be redone with a pencil instead of taken on trust. Four thousand six hundred and forty-seven euros gross, eighteen lines of contributions, three thousand two hundred and eight to pay — and each of those lines shows the base it was worked out on and the rate applied to it. That is exactly what an employee, an inspector or an accountant does with a payslip when something looks wrong.

What this example shows

  • Eighteen contribution lines, employee share against employer share.
  • Heading rows that span every column of the grid.
  • The month set beside the running total for the year.

The source code, complete

Nothing is left out and nothing is simplified: this is the program exactly as it runs, for the developer who uses this library. The third is the description itself: a plain list of what the page has to say, which is what the service is sent.

Read the Rust source Read the Python source Read the JSON source

The document itself

Open the document in English Open the document in French

Examples near this one

A commercial invoice

An invoice whose lines and totals fall where the text puts them, and whose QR code lets a telephone pay the exact sum into the exact account with nothing retyped.

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 landscape certificate

A certificate whose border, ribbon and seal are drawn as lines rather than photographed: sharp at any size, and a fraction of the weight.

A boarding pass

A boarding pass carrying, as a QR code, the one line the gates at an airport read — one character out of place and it is refused.

A sheet of shelf labels

Fifteen shelf labels on one pre-cut sheet, each with its price and its scannable code, and trim marks in the margins. Six numbers describe the paper.

Every example, by subject