A minimal PDF
Two identical pages carrying the bones of an invoice in plain shapes, and not a word of text: a file of a dozen kilobytes, with no font embedded.
An accountant's statement is easier to read when the rules between its rows are quiet: a hairline of dots rather than a solid line, and a dashed rule above the total. The usual way to get that is to draw a great many short strokes and hope the spacing survives a change of column width — which it does not, and the day the table gains a row somebody is counting dots by hand.
Nothing here is drawn twice over. Each rule is one single line told what to look like: the length of its dashes and of the gaps between them, the shape of its two ends, the shape of the corner where it turns. Widen the column and the dashes keep their spacing; add a row and nobody counts anything. A table is told the same thing once, and every rule in it, down to the border of one cell, comes out that way.
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
Two identical pages carrying the bones of an invoice in plain shapes, and not a word of text: a file of a dozen kilobytes, with no font embedded.
The same document written twice, the ordinary way and with its first page moved to the head of the file, with how much of each must arrive before page one appears.
The same document written twice, plainly and packed, with what each one weighs and what the packing saved.
A page that opens with nothing typed and prints like any other, and that asks the reading software to leave its text where it is. Every word of it is scrambled inside the file.
A page nothing shows until its password is typed in: no first line, no preview, no picture of it anywhere. The password is given on the example's page, to be tried.
Text set in a font embedded in the file, cut down to the letters actually used, and still searchable, copyable and readable aloud.