A Price Offer Nobody Can Copy From

Some documents are meant to be read, not taken over: a price offer whose figures a competitor should not paste into their own, a draft contract, an exam paper. In an ordinary PDF every word is text: anyone who opens the file can select it and copy it, or hand the file to a program that pulls all of it out in a second.

Here the library sets the page as usual — fonts, kerning, line breaks — and then writes each letter as the shape it makes on the page, traced from the outline of its font. The reader sees exactly the same price offer, but the file holds no text: no word can be selected or searched for, the prices cannot be copied into another document, and a program that extracts text finds nothing. One setting on the document does it; the rest of the code is the code of any other page.

The note at the foot of the page states what it costs: a screen reader has nothing to read aloud, the document has no structure for accessibility, and the file is larger, since every letter is written out as a shape. It stops copying, not looking: the page can still be printed or photographed.

What This Example Shows

  • Every letter written as a shape traced from its font.
  • A page that reads as usual, with nothing to select, search or copy.
  • What it costs, stated on the page: nothing read aloud, no structure, a larger file.

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.

Read the Rust source Read the Python source

The Document Itself

Open the document in English Open the document in French Open the document in German Open the document in Spanish Open the document in Italian Open the document in Portuguese

A Price Offer Nobody Can Copy From, first page

The Same Document in Other Languages

This document weighs 228.9 kB

Examples Near This One

A Minimal PDF

Two identical pages that draw the structure of an invoice with lines and rectangles, without a word of text: the file is about a dozen kilobytes and embeds no font.

Showing Page One Before the File Has Arrived

The same document written twice: once as it is, once with its first page placed at the start of the file. The page gives, for each of the two, the number of bytes a browser must have received before it shows page 1.

Every Paper Size, on Its Own Page

One page for each paper size the library names, from A0 down to A6 and the American sizes, each giving its size in millimetres and inches; then pages laid on their side or upside down, and a banner ten metres long.

Every example, by subject