A PDF/A-4f Statement with Its Data Attached

A statement of account is checked by a person and booked by a program. When the figures exist only on the page, somebody types them into the accounts, and a figure typed is a figure that can be typed wrong.

This statement is written to the fourth part of the archival standard at level F, the one that lets a record carry a file of any kind. The two lines and the amount due are on the page, and the same statement travels inside the file as XML, so the accounts take the figures straight from it. On its own the fourth part admits no file of that kind; level F is what makes room for it.

What This Example Shows

  • A statement of account for May 2026: two lines and the amount due.
  • The same statement attached inside the file as XML.
  • Written on PDF 2.0, as the fourth part requires.

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 Open the document in German Open the document in Spanish Open the document in Italian Open the document in Portuguese

A PDF/A-4f Statement with Its Data Attached, first page

The Same Document in Other Languages

This document weighs 19.2 kB

Examples Near This One

A Sheet That Measures What It Says

Three rulers — centimetres, inches and points — on a page that tells whatever prints it to put it out at exactly the size it was drawn, and to offer nothing else. Lay a tape measure on the printed sheet and you can check for yourself.

A Register Whose Pages Say Where They Came From

Two sittings bound into one file. Each page carries a record of its own — what it is, whose hand wrote it, the day it was written — the photograph on the second page carries one too, and each transcription is tied to the page it transcribes rather than to the file at large.

A File That Explains Its Own Entries

A records office's reference, the department it came from, the date until which the document must be kept and its classification, carried inside a file an archive still accepts. No archiving rule knows what a keep-until date is, so each entry carries a description of itself, and that description is what makes a checker accept a fact you alone invented. A second page adds a loan record whose entries are a yes or no, a type of file, a person's name, a measurement and two web addresses, and gives that page a hidden record of its own.

A Delivery Note That Knows Its Own Order

Every line of the note carries the order it was picked for, the article code and the shelf it came off, and prints none of them. The place where the driver signs carries the round and the van, and one beside the fold tick carries nothing but its own place.

A Document That Can Be Read Aloud

Two pages carrying a copy of themselves that nobody sees: this is a heading, this is a table, and this is the order to read them in. Software reading the document aloud follows that instead of the order the marks were drawn in, and skips the running head. On the page, nothing looks any different.

A List Whose Pictures Speak Too

A parts list whose first column is a picture rather than a word. Each picture carries the sentence somebody hears in its place, so nothing in the list is lost on a reader who cannot see it. On the page, the pictures are simply pictures.

Every example, by subject