A landscape certificate

A certificate is printed once, framed, and hung on a wall, so it is judged the way a printed thing is judged: whether the ornament is crisp and whether the name sits dead centre. It is also the one people reach for a picture to make — a scanned border, a seal saved as an image — and then find the file weighs ten megabytes and the gold edge comes out of the printer furry.

Nothing on this one is a photograph. The border, its corner detail, the ribbon, the seal and the rosette are drawn on the page as lines, which is why it stays sharp at any size a printer works at, prints the same on a good machine as on a cheap one, and weighs a fraction of what a scanned ornament would. The title, the name and the wording sit on one axis because each line is measured in its own font before it is placed, not nudged by eye.

What this example shows

  • A page wider than it is tall, made that way rather than turned.
  • An ornamental border, a ribbon and a seal drawn as lines rather than photographed.
  • A name centred by measurement, so it sits dead centre whatever it is.

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 payslip

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

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