write_archival_form.json

Die JSON-Datei des Beispiels „Ein archivierbares PDF/A-3-Formular“. Ein Formular, das zugleich eine PDF/A-3-Datei ist: jedes Feld bereits gezeichnet, mit sichtbarem Rahmen, ohne etwas von der Anzeigesoftware zu erwarten.

JSON 251 Zeilen

Diese Datei ist eine Anfrage: Eine Anwendung sendet sie über das Netz an den Server, der das PDF erzeugt und zurücksendet. Sie erzeugt dieselbe Seite wie die Rust- und die Python-Fassung dieses Beispiels. Eine Anfrage nennt jede Datei, die sie verwendet, nie ihren Inhalt; der Aufruf trägt die Anfrage und die Dateien zusammen. Eine Schrift, die der Server bereits vorhält, etwa DejaVuSans, wird ohne Anhang genannt. Senden Sie die Anfrage an die Adresse, die die API-Seite angibt.

Wofür dieses Beispiel da ist

Ein Formular und eine Archivdatei ziehen in entgegengesetzte Richtungen. Ein Formular überlässt das Zeichnen seiner Felder der Anzeigesoftware; eine Archivdatei verbietet genau das, denn ein Dokument, das noch in Jahrzehnten lesbar sein muss, darf nicht von Software abhängen, die noch niemand geschrieben hat. Jede Bank, jede Versicherung und jede Behörde, die ausgefüllte Formulare aufbewahren muss, stößt am ersten Tag auf diesen Widerspruch.

Was dieses Beispiel zeigt

  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
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
{
  "items": [
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 760.0,
        "urx": 560.0,
        "ury": 774.4
      },
      "content": [
        "Registration"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 738.0,
        "urx": 560.0,
        "ury": 752.4
      },
      "content": [
        "The boxes below are clickable form fields."
      ],
      "font": "DejaVuSans",
      "font_size": 12.0
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 722.0,
        "urx": 560.0,
        "ury": 736.4
      },
      "content": [
        "Their borders are optional: the standard draws none by default."
      ],
      "font": "DejaVuSans",
      "font_size": 12.0
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 700.0,
        "urx": 172.0,
        "ury": 714.4
      },
      "content": [
        "Name"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0
    },
    {
      "type": "text_field",
      "name": "Name",
      "rect": {
        "llx": 180.0,
        "lly": 697.0,
        "urx": 420.0,
        "ury": 713.0
      },
      "font": "DejaVuSans",
      "font_size": 12.0,
      "value": "Ada Lovelace",
      "border": {
        "width": 0.75,
        "color": [0.6, 0.6, 0.6]
      }
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 664.0,
        "urx": 172.0,
        "ury": 678.4
      },
      "content": [
        "Email"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0
    },
    {
      "type": "text_field",
      "name": "Email",
      "rect": {
        "llx": 180.0,
        "lly": 661.0,
        "urx": 420.0,
        "ury": 677.0
      },
      "font": "DejaVuSans",
      "font_size": 12.0,
      "border": {
        "width": 0.75,
        "color": [0.6, 0.6, 0.6]
      }
    },
    {
      "type": "text",
      "rect": {
        "llx": 90.0,
        "lly": 628.0,
        "urx": 330.0,
        "ury": 642.4
      },
      "content": [
        "Subscribe to the newsletter"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0
    },
    {
      "type": "check_box",
      "name": "Subscribe",
      "rect": {
        "llx": 72.0,
        "lly": 626.0,
        "urx": 84.0,
        "ury": 638.0
      },
      "checked": true,
      "border": {
        "width": 0.75,
        "color": [0.6, 0.6, 0.6]
      }
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 592.0,
        "urx": 172.0,
        "ury": 606.4
      },
      "content": [
        "Plan"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0
    },
    {
      "type": "choice_field",
      "name": "Plan",
      "rect": {
        "llx": 180.0,
        "lly": 589.0,
        "urx": 420.0,
        "ury": 605.0
      },
      "font": "DejaVuSans",
      "font_size": 12.0,
      "options": [
        "Monthly",
        "Yearly"
      ],
      "selected": "Yearly",
      "presentation": "dropdown",
      "border": {
        "width": 0.75,
        "color": [0.6, 0.6, 0.6]
      }
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 556.0,
        "urx": 172.0,
        "ury": 570.4
      },
      "content": [
        "Payment"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0
    },
    {
      "type": "radio_group",
      "name": "Payment",
      "options": [
        {
          "value": "card",
          "rect": {
            "llx": 180.0,
            "lly": 553.0,
            "urx": 192.0,
            "ury": 565.0
          }
        },
        {
          "value": "transfer",
          "rect": {
            "llx": 320.0,
            "lly": 553.0,
            "urx": 332.0,
            "ury": 565.0
          }
        }
      ],
      "selected": "card",
      "border": {
        "width": 0.75,
        "color": [0.6, 0.6, 0.6]
      }
    },
    {
      "type": "text",
      "rect": {
        "llx": 198.0,
        "lly": 556.0,
        "urx": 268.0,
        "ury": 570.4
      },
      "content": [
        "Card"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0
    },
    {
      "type": "text",
      "rect": {
        "llx": 338.0,
        "lly": 556.0,
        "urx": 438.0,
        "ury": 570.4
      },
      "content": [
        "Transfer"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0
    }
  ],
  "metadata": {
    "title": "A registration form",
    "author": "Olivier Pons",
    "subject": "A fillable form that is also an archival file",
    "producer": "hqf-pdf",
    "created": "2026-07-14T09:30:00+02:00"
  },
  "archive": "pdfa3b"
}