A minimal PDF
Two identical pages carrying the bones of an invoice in plain shapes, and not a word of lettering: the smallest file there is, and it opens anywhere.
A bank that prints two million statements a night pays for every byte twice over: once on the disc the run is kept on, once on the line it travels down. A letter is normally written into a file as a pair of bytes, because that is what it takes to reach any letter of any alphabet on earth. A statement in French needs a hundred or so of them, and the second byte is a nought on every single letter of the run.
Told to, the engine settles a number of its own for each letter a document uses, writes the list of them into the file so a reader knows what it is looking at, and then spends one byte a letter instead of two. The page shows the three lines drawn both ways and prints what each way came to, counted as the page was drawn. It ends on what the short way buys besides room: the space between words becomes something a document can widen, which is how justified text is set, and which the long way has no way of reaching.
Whole programs, hundreds of lines long, for whoever writes your software. The third is not a program at all: it is a plain list of what the page has to say, which the service is sent.
Read the Rust source Read the Python source Read the JSON source
This document weighs 52.9 kB.
This figure is read off the very file the button above hands you, not from a table written down beside it. See what every document weighs.
The speed and weight figures on this site are measured with a licence key. See what a trial copy draws.
Exactly 52 879 bytes.
A kilobyte on this site is a thousand bytes.
Two identical pages carrying the bones of an invoice in plain shapes, and not a word of lettering: the smallest file there is, and it opens anywhere.
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 a reader must hold 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 written on its own page, to be tried.
Text set in a typeface the file carries inside it, cut down to the letters actually used, and still searchable, copyable and readable aloud.