A two-page services contract

A services agreement over two pages, ending in signature, name and date fields a reader fills in.

JSON write_contract.json 582 lines

This one is not a program. It is the request the document server is sent: the same page, asked for over the network by an application that writes no PDF code at all.

  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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
{
  "metadata": {"title": "Services agreement HQF-2026-0087"},
  "items": [
    {
      "type": "image",
      "image": "logo",
      "rect": {"llx": 56, "lly": 779.926667, "urx": 140, "ury": 826.5},
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 768, "urx": 539.276, "ury": 778.2},
      "content": ["42 lot les Genêts, 13480 Calas, France"],
      "font": "DejaVuSans",
      "font_size": 8.5,
      "color": [0.42, 0.42, 0.45],
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 756, "urx": 539.276, "ury": 766.2},
      "content": ["www.hqf.fr"],
      "font": "DejaVuSans",
      "font_size": 8.5,
      "color": [0.42, 0.42, 0.45],
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 796, "urx": 539.276, "ury": 827.2},
      "content": ["AGREEMENT"],
      "font": "DejaVuSans",
      "font_size": 26,
      "color": [0.11, 0.33, 0.55],
      "align": "right",
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 386.014281, "lly": 770, "urx": 595.276, "ury": 781.4},
      "content": ["Agreement No."],
      "font": "DejaVuSans",
      "font_size": 9.5,
      "color": [0.1, 0.1, 0.12],
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 463.980781, "lly": 770, "urx": 595.276, "ury": 781.4},
      "content": ["HQF-2026-0087"],
      "font": "DejaVuSans",
      "font_size": 9.5,
      "color": [0.1, 0.1, 0.12],
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 441.251586, "lly": 757, "urx": 595.276, "ury": 768.4},
      "content": ["Signed"],
      "font": "DejaVuSans",
      "font_size": 9.5,
      "color": [0.42, 0.42, 0.45],
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 479.897586, "lly": 757, "urx": 595.276, "ury": 768.4},
      "content": ["20 July 2026"],
      "font": "DejaVuSans",
      "font_size": 9.5,
      "color": [0.42, 0.42, 0.45],
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 402.875854, "lly": 744, "urx": 595.276, "ury": 755.4},
      "content": ["Effective"],
      "font": "DejaVuSans",
      "font_size": 9.5,
      "color": [0.42, 0.42, 0.45],
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 450.508854, "lly": 744, "urx": 595.276, "ury": 755.4},
      "content": ["1 September 2026"],
      "font": "DejaVuSans",
      "font_size": 9.5,
      "color": [0.42, 0.42, 0.45],
      "pages": [1]
    },
    {
      "type": "line",
      "from": {"x": 56, "y": 730},
      "to": {"x": 539.276, "y": 730},
      "stroke": {"width": 1.2, "color": [0.11, 0.33, 0.55]},
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 712, "urx": 300, "ury": 721.6},
      "content": ["SERVICE PROVIDER"],
      "font": "DejaVuSans",
      "font_size": 8,
      "color": [0.42, 0.42, 0.45],
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 696, "urx": 300, "ury": 709.8},
      "content": ["HQF Development"],
      "font": "DejaVuSans",
      "font_size": 11.5,
      "color": [0.1, 0.1, 0.12],
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 681, "urx": 300, "ury": 691.2},
      "content": ["42 lot les Genêts, 13480 Calas, France"],
      "font": "DejaVuSans",
      "font_size": 8.5,
      "color": [0.42, 0.42, 0.45],
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 669.5, "urx": 300, "ury": 679.7},
      "content": ["SIRET 752 492 777 00012 · APE 6202A"],
      "font": "DejaVuSans",
      "font_size": 8.5,
      "color": [0.42, 0.42, 0.45],
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 658, "urx": 300, "ury": 668.2},
      "content": ["VAT FR59 752 492 777"],
      "font": "DejaVuSans",
      "font_size": 8.5,
      "color": [0.42, 0.42, 0.45],
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 315.276, "lly": 712, "urx": 559.276, "ury": 721.6},
      "content": ["CLIENT"],
      "font": "DejaVuSans",
      "font_size": 8,
      "color": [0.42, 0.42, 0.45],
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 315.276, "lly": 696, "urx": 559.276, "ury": 709.8},
      "content": ["Northwind Trading SARL"],
      "font": "DejaVuSans",
      "font_size": 11.5,
      "color": [0.1, 0.1, 0.12],
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 315.276, "lly": 681, "urx": 559.276, "ury": 691.2},
      "content": ["18 quai du Port, 13002 Marseille, France"],
      "font": "DejaVuSans",
      "font_size": 8.5,
      "color": [0.42, 0.42, 0.45],
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 315.276, "lly": 669.5, "urx": 559.276, "ury": 679.7},
      "content": ["RCS Marseille 812 665 431"],
      "font": "DejaVuSans",
      "font_size": 8.5,
      "color": [0.42, 0.42, 0.45],
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 315.276, "lly": 658, "urx": 559.276, "ury": 668.2},
      "content": ["VAT FR41 812 665 431"],
      "font": "DejaVuSans",
      "font_size": 8.5,
      "color": [0.42, 0.42, 0.45],
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 586.4, "urx": 539.276, "ury": 632},
      "content": [
        "This agreement is made on 20 July 2026 between the parties named above, and takes effect on ",
        {"text": "1 September 2026", "underline": true},
        ". It sets out the terms on which the Provider supplies software development and support services to the Client. Each clause below binds both parties from the date the last of them signs."
      ],
      "font": "DejaVuSans",
      "font_size": 9.5,
      "align": "justify",
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 562.4, "urx": 539.276, "ury": 575},
      "content": ["1. Scope of services"],
      "font": "DejaVuSans",
      "font_size": 10.5,
      "color": [0.11, 0.33, 0.55],
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 503.4, "urx": 539.276, "ury": 557.4},
      "content": [
        "The Provider designs, builds and maintains the software described in the statement of work annexed to this agreement, together with any further work the parties agree to in writing. A change of scope is agreed in writing before it is carried out, and the Provider may decline a change that cannot be delivered within the agreed term."
      ],
      "font": "DejaVuSans",
      "font_size": 9.5,
      "align": "justify",
      "leading": 13.5,
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 484.4, "urx": 539.276, "ury": 497},
      "content": ["2. Term and commencement"],
      "font": "DejaVuSans",
      "font_size": 10.5,
      "color": [0.11, 0.33, 0.55],
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 438.9, "urx": 539.276, "ury": 479.4},
      "content": [
        "This agreement begins on the effective date shown above and runs for twelve months. It renews for successive periods of twelve months unless either party gives written notice of at least sixty days before the end of the period then running."
      ],
      "font": "DejaVuSans",
      "font_size": 9.5,
      "align": "justify",
      "leading": 13.5,
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 419.9, "urx": 539.276, "ury": 432.5},
      "content": ["3. Fees and payment"],
      "font": "DejaVuSans",
      "font_size": 10.5,
      "color": [0.11, 0.33, 0.55],
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 360.9, "urx": 539.276, "ury": 414.9},
      "content": [
        "The Client pays the Provider 620.00 EUR for each day of work, before value added tax. The Provider invoices monthly in arrears and each invoice falls due thirty days after its issue date. A sum still unpaid on the due date carries interest at the statutory rate, and no reminder has to be sent for that interest to run."
      ],
      "font": "DejaVuSans",
      "font_size": 9.5,
      "align": "justify",
      "leading": 13.5,
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 341.9, "urx": 539.276, "ury": 354.5},
      "content": ["4. Intellectual property"],
      "font": "DejaVuSans",
      "font_size": 10.5,
      "color": [0.11, 0.33, 0.55],
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 282.9, "urx": 539.276, "ury": 336.9},
      "content": [
        "Once an invoice has been paid in full, the Client owns the source code and the documents written for it under this agreement. The Provider keeps the tools, libraries and generic components it brought to the work or wrote for general use, and grants the Client a perpetual non-exclusive licence to use them as part of the delivered software."
      ],
      "font": "DejaVuSans",
      "font_size": 9.5,
      "align": "justify",
      "leading": 13.5,
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 263.9, "urx": 539.276, "ury": 276.5},
      "content": ["5. Confidentiality"],
      "font": "DejaVuSans",
      "font_size": 10.5,
      "color": [0.11, 0.33, 0.55],
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 204.9, "urx": 539.276, "ury": 258.9},
      "content": [
        "Each party keeps in confidence what it learns of the other's business, customers and technology, and uses it only to perform this agreement. That duty outlives the agreement by five years. It does not cover what is already public through no fault of the party that received it, nor what a court or a regulator requires be disclosed."
      ],
      "font": "DejaVuSans",
      "font_size": 9.5,
      "align": "justify",
      "leading": 13.5,
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 185.9, "urx": 539.276, "ury": 198.5},
      "content": ["6. Warranties and liability"],
      "font": "DejaVuSans",
      "font_size": 10.5,
      "color": [0.11, 0.33, 0.55],
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 126.9, "urx": 539.276, "ury": 180.9},
      "content": [
        "The Provider warrants that the work is performed with the skill and care of a competent professional, and corrects at its own cost any defect reported within ninety days of delivery. Neither party is liable for loss of profit, loss of data or any indirect loss, and the liability of each party under this agreement is capped at the fees paid over the twelve months before the claim arose."
      ],
      "font": "DejaVuSans",
      "font_size": 9.5,
      "align": "justify",
      "leading": 13.5,
      "pages": [1]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 782, "urx": 539.276, "ury": 794.6},
      "content": ["7. Termination"],
      "font": "DejaVuSans",
      "font_size": 10.5,
      "color": [0.11, 0.33, 0.55],
      "pages": [2]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 723, "urx": 539.276, "ury": 777},
      "content": [
        "Either party may end this agreement on sixty days' written notice, and either may end it at once if the other commits a material breach that is not put right within thirty days of being asked in writing to put it right. On termination the Client pays for the work done up to that date and the Provider hands over the deliverables in the state they are then in."
      ],
      "font": "DejaVuSans",
      "font_size": 9.5,
      "align": "justify",
      "leading": 13.5,
      "pages": [2]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 704, "urx": 539.276, "ury": 716.6},
      "content": ["8. Notices"],
      "font": "DejaVuSans",
      "font_size": 10.5,
      "color": [0.11, 0.33, 0.55],
      "pages": [2]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 658.5, "urx": 539.276, "ury": 699},
      "content": [
        "Notice under this agreement is given in writing to the address shown for the party at the head of this document, and takes effect on the day it is delivered. A party that moves tells the other within fifteen days."
      ],
      "font": "DejaVuSans",
      "font_size": 9.5,
      "align": "justify",
      "leading": 13.5,
      "pages": [2]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 639.5, "urx": 539.276, "ury": 652.1},
      "content": ["9. Entire agreement and governing law"],
      "font": "DejaVuSans",
      "font_size": 10.5,
      "color": [0.11, 0.33, 0.55],
      "pages": [2]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 580.5, "urx": 539.276, "ury": 634.5},
      "content": [
        "This document, with the statement of work annexed to it, is the whole of what the parties have agreed on this subject and replaces every earlier understanding of it. The agreement is governed by French law, and any dispute the parties cannot settle between them goes to the courts of Aix-en-Provence, France."
      ],
      "font": "DejaVuSans",
      "font_size": 9.5,
      "align": "justify",
      "leading": 13.5,
      "pages": [2]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 551.5, "urx": 539.276, "ury": 564.1},
      "content": ["SIGNATURES"],
      "font": "DejaVuSans",
      "font_size": 10.5,
      "color": [0.11, 0.33, 0.55],
      "pages": [2]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 514.1, "urx": 539.276, "ury": 546.5},
      "content": [
        "Each party signs in the boxes below: a ",
        {"text": "signature, a printed name and a date", "underline": true},
        ", filled in from a reader. The agreement takes effect on the later of the two dates written here, and a copy of the signed document goes to each party."
      ],
      "font": "DejaVuSans",
      "font_size": 9,
      "align": "justify",
      "pages": [2]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 486.1, "urx": 280, "ury": 495.7},
      "content": ["FOR THE PROVIDER"],
      "font": "DejaVuSans",
      "font_size": 8,
      "color": [0.42, 0.42, 0.45],
      "pages": [2]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 472.1, "urx": 280, "ury": 483.5},
      "content": ["Olivier Pons — Director"],
      "font": "DejaVuSans",
      "font_size": 9.5,
      "color": [0.1, 0.1, 0.12],
      "pages": [2]
    },
    {
      "type": "signature_field",
      "name": "Provider signature",
      "rect": {"llx": 56, "lly": 402.1, "urx": 280, "ury": 450.1},
      "border": {"width": 0.75, "color": [0.55, 0.55, 0.55]},
      "pages": [2]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 392.1, "urx": 280, "ury": 401.1},
      "content": ["Signature"],
      "font": "DejaVuSans",
      "font_size": 7.5,
      "color": [0.42, 0.42, 0.45],
      "pages": [2]
    },
    {
      "type": "text_field",
      "name": "Provider printed name",
      "rect": {"llx": 56, "lly": 360.1, "urx": 280, "ury": 378.1},
      "font": "DejaVuSans",
      "font_size": 10,
      "border": {"width": 0.75, "color": [0.55, 0.55, 0.55]},
      "pages": [2]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 350.1, "urx": 280, "ury": 359.1},
      "content": ["Printed name"],
      "font": "DejaVuSans",
      "font_size": 7.5,
      "color": [0.42, 0.42, 0.45],
      "pages": [2]
    },
    {
      "type": "text_field",
      "name": "Provider date",
      "rect": {"llx": 56, "lly": 318.1, "urx": 280, "ury": 336.1},
      "font": "DejaVuSans",
      "font_size": 10,
      "border": {"width": 0.75, "color": [0.55, 0.55, 0.55]},
      "pages": [2]
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 308.1, "urx": 280, "ury": 317.1},
      "content": ["Date (DD/MM/YYYY)"],
      "font": "DejaVuSans",
      "font_size": 7.5,
      "color": [0.42, 0.42, 0.45],
      "pages": [2]
    },
    {
      "type": "text",
      "rect": {"llx": 315.276, "lly": 486.1, "urx": 539.276, "ury": 495.7},
      "content": ["FOR THE CLIENT"],
      "font": "DejaVuSans",
      "font_size": 8,
      "color": [0.42, 0.42, 0.45],
      "pages": [2]
    },
    {
      "type": "text",
      "rect": {"llx": 315.276, "lly": 472.1, "urx": 539.276, "ury": 483.5},
      "content": ["Claire Lemoine — Managing Director"],
      "font": "DejaVuSans",
      "font_size": 9.5,
      "color": [0.1, 0.1, 0.12],
      "pages": [2]
    },
    {
      "type": "signature_field",
      "name": "Client signature",
      "rect": {"llx": 315.276, "lly": 402.1, "urx": 539.276, "ury": 450.1},
      "border": {"width": 0.75, "color": [0.55, 0.55, 0.55]},
      "pages": [2]
    },
    {
      "type": "text",
      "rect": {"llx": 315.276, "lly": 392.1, "urx": 539.276, "ury": 401.1},
      "content": ["Signature"],
      "font": "DejaVuSans",
      "font_size": 7.5,
      "color": [0.42, 0.42, 0.45],
      "pages": [2]
    },
    {
      "type": "text_field",
      "name": "Client printed name",
      "rect": {"llx": 315.276, "lly": 360.1, "urx": 539.276, "ury": 378.1},
      "font": "DejaVuSans",
      "font_size": 10,
      "border": {"width": 0.75, "color": [0.55, 0.55, 0.55]},
      "pages": [2]
    },
    {
      "type": "text",
      "rect": {"llx": 315.276, "lly": 350.1, "urx": 539.276, "ury": 359.1},
      "content": ["Printed name"],
      "font": "DejaVuSans",
      "font_size": 7.5,
      "color": [0.42, 0.42, 0.45],
      "pages": [2]
    },
    {
      "type": "text_field",
      "name": "Client date",
      "rect": {"llx": 315.276, "lly": 318.1, "urx": 539.276, "ury": 336.1},
      "font": "DejaVuSans",
      "font_size": 10,
      "border": {"width": 0.75, "color": [0.55, 0.55, 0.55]},
      "pages": [2]
    },
    {
      "type": "text",
      "rect": {"llx": 315.276, "lly": 308.1, "urx": 539.276, "ury": 317.1},
      "content": ["Date (DD/MM/YYYY)"],
      "font": "DejaVuSans",
      "font_size": 7.5,
      "color": [0.42, 0.42, 0.45],
      "pages": [2]
    },
    {
      "type": "line",
      "from": {"x": 56, "y": 78},
      "to": {"x": 539.276, "y": 78},
      "stroke": {"width": 0.5, "color": [0.8, 0.8, 0.8]}
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 66, "urx": 539.276, "ury": 74.4},
      "content": [
        "HQF Development · 42 lot les Genêts, 13480 Calas, France · SIRET 752 492 777 00012 · APE 6202A · VAT FR59 752 492 777"
      ],
      "font": "DejaVuSans",
      "font_size": 7,
      "color": [0.42, 0.42, 0.45],
      "align": "center"
    },
    {
      "type": "text",
      "rect": {"llx": 56, "lly": 55, "urx": 539.276, "ury": 63.4},
      "content": [
        "Agreement HQF-2026-0087 — page {current_page} of {total_pages}"
      ],
      "font": "DejaVuSans",
      "font_size": 7,
      "color": [0.42, 0.42, 0.45],
      "align": "center"
    }
  ]
}