write_pdfa4.json

The JSON file of the “PDF/A-4 Terms of Carriage on PDF 2.0” example. Terms of carriage written to the fourth part of the archival standard, the one built on PDF 2.0, which drops the A, B and U levels of the earlier parts.

JSON 36 lines

This file is a request: an application sends it over the network to the server, which creates the PDF and sends it back. It creates the same page as the Rust and Python versions of this example. A request names every file it uses, never its content; the call carries the request and the files together. A font the server already holds, such as DejaVuSans, is named with nothing attached. Send the request to the address the API page gives.

What This Example Is For

The fourth part of the archival standard is the one archives turn to now that PDF has a second version. It drops the A, B and U levels of the earlier parts: a record meets the part or does not, and only two letters add to it, F for attached files of any kind and E for engineering drawings. A document still written on an older version cannot claim it at all.

What This Example Shows

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
  "archive": "pdfa4",
  "metadata": {
    "title": "Terms of carriage, edition of 2026",
    "author": "HQF Development",
    "subject": "A record written on the version of PDF the fourth part is built on",
    "producer": "hqf-pdf-server",
    "created": "2026-05-04T09:00:00+02:00"
  },
  "items": [
    {
      "type": "text",
      "rect": {"llx": 72, "lly": 756, "urx": 523, "ury": 782},
      "content": ["Terms of carriage, edition of 2026"],
      "font": "DejaVuSans",
      "font_size": 20
    },
    {
      "type": "text",
      "rect": {"llx": 72, "lly": 620, "urx": 523, "ury": 736},
      "content": ["This record claims the fourth part of the archival standard, the one built on the second version of PDF. It says what it is in its metadata packet and nowhere else: there is no information dictionary behind the page, and the title above is the title the file carries. ", "Everything the part asks for is here and nothing more: every face is carried whole inside the file, every colour says what it means, and the pages keep their looks with no font, no profile and no program to fetch from anywhere."],
      "font": "DejaVuSans",
      "font_size": 11,
      "leading": 16,
      "align": "justify"
    },
    {
      "type": "text",
      "rect": {"llx": 72, "lly": 540, "urx": 523, "ury": 596},
      "content": ["Goods are carried under the schedule current on the day they are accepted.\nA schedule that changes after acceptance does not reach an order already accepted."],
      "font": "DejaVuSans",
      "font_size": 11,
      "leading": 17
    }
  ]
}