A payslip

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

A payslip is a table before it is anything else. This one carries a letterhead, the employee it names, an earnings table, then eighteen contribution lines, each a base, a rate for the employee, a rate for the employer and the amount each rate comes to, and finally the cumulative figures for the year.

Section headings are rows that span the whole grid, and the totals are boxed off from the lines above them. Every figure is worked out from the earnings at the top, so the sums on the page can be redone with a pencil instead of taken on trust.

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 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 payslip

What this document weighs

Before 169,101 bytes
Now 99,096 bytes
Saved 41.4 %

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