Four Personal Letters, One File for the Press

A concert hall sends its renewal letters: thousands of pages that are all the same letter, with only the name, the seat and the amount changing. Sent to a press as thousands of separate files, or as one file with nothing in it but pages, the run slows down: the press works out the same letterhead again for every page, and nothing tells it where one letter ends and the next begins.

This example writes four such letters into one file the way a press for variable-data printing expects. Each letter is a part of its own, which states its recipient, member number, postcode and amount due, so the press knows where one letter ends and the next begins. The letterhead and the note at the foot of the page are one shared object, placed on every page and marked so that a press can work it out once and keep it for the whole run.

The standard for such files, PDF/VT, rests on PDF/X-4, which needs the colour profile of the press the run is printed on. The library has no profile of its own to give, so the copies shown here claim no standard and say so at the foot of each page; hand the program your printer's profile and the same file claims PDF/VT-1.

What This Example Shows

  • One layout, four letters: only the name, the seat and the amount change.
  • Each letter a part of its own, its recipient's details stated for the press.
  • A letterhead a press can work out once for the whole 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

Four Personal Letters, One File for the Press, first page

The Same Document in Other Languages

This document weighs 21.8 kB

Examples Near This One

Grey, Screen and Printing Colours

Swatches in each of the three ways to say a colour — a grey as one number, a screen colour as three, a printing colour as four inks — each captioned with the instruction actually written into the file, and one mid-grey said four ways, the last as the hexadecimal code a screen designer hands over.

Colour the Document Defines

The same six colours said as bare numbers and then read through the screen profile the file carries, plus a ramp from light to dark and a sweep of measured hues: colour that still means the same thing on another screen and on a press.

Several Plates at Once, Each at Its Own Strength

Eight choices of plate among the four usual inks, each with the small program that shows it printed underneath, and two inks the press carries itself used together, every strength of one against every strength of the other.

A Colour Chart the Drawing Points Into

A chart of house colours the file carries, and a drawing whose sixteen numbers are places in that chart rather than colours. The same drawing is shown twice through two charts: repainting a whole brand is one chart, not every drawing.

One Hatch, Laid Down in Any Colour You Like

One pattern that states no colour of its own, laid down in five colours and in five strengths of one press ink: the fill says what colour to lay it down in. Beside them, the same hatch made of patterns that carry their own colours, which is one pattern per colour.

Every example, by subject