github.com/pdfcpu/pdfcpu@v0.11.1/pkg/testdata/json/form/demo/french.json (about) 1 { 2 "paper": "A4P", 3 "crop": "10", 4 "origin": "LowerLeft", 5 "contentBox": false, 6 "guides": false, 7 "colors": { 8 "DarkOrange": "#FF8C00", 9 "DarkSeaGreen": "#8FBC8F" 10 }, 11 "dirs": { 12 "images": "../../testdata/resources" 13 }, 14 "files": { 15 "logo1": "$images/logoVerySmall.png", 16 "logo2": "$images/github.png" 17 }, 18 "images": { 19 "logo1": { 20 "src": "$logo1", 21 "url": "https://pdfcpu.io", 22 "margin": { 23 "width": 5 24 } 25 }, 26 "logo2": { 27 "src": "$logo2", 28 "url": "https://github.com/pdfcpu/pdfcpu", 29 "margin": { 30 "width": 5 31 } 32 } 33 }, 34 "fonts": { 35 "myCourier": { 36 "name": "Courier", 37 "size": 12 38 }, 39 "myCourierBold": { 40 "name": "Courier-Bold", 41 "size": 12 42 }, 43 "input": { 44 "name": "Helvetica", 45 "size": 12 46 }, 47 "label": { 48 "name": "$input" 49 } 50 }, 51 "margin": { 52 "width": 10 53 }, 54 "header": { 55 "font": { 56 "name": "$myCourierBold", 57 "size": 24, 58 "col": "#C00000" 59 }, 60 "left": "$logo1", 61 "center": "Formulaire de démonstration", 62 "right": "$logo2", 63 "height": 40, 64 "dx": 5, 65 "dy": 5, 66 "border": false 67 }, 68 "footer": { 69 "font": { 70 "name": "Courier", 71 "size": 9 72 }, 73 "left": "pdfcpu: %v\nCreated: %t", 74 "center": "Optimized for A.Reader\nPage %p of %P", 75 "right": "Source:\ntestdata/json/form/demo/french.json", 76 "height": 30, 77 "dx": 5, 78 "dy": 5, 79 "border": false 80 }, 81 "pages": { 82 "1": { 83 "content": { 84 "textfield": [ 85 { 86 "hide": false, 87 "id": "firstName1", 88 "tip": "Prénom", 89 "tab": 1, 90 "pos": [ 91 150, 92 665 93 ], 94 "width": 200, 95 "align": "left", 96 "border": { 97 "width":1, 98 "col": "Gray" 99 }, 100 "label": { 101 "value": "Prénom:", 102 "width": 110, 103 "gap": 10, 104 "align": "left", 105 "pos": "left" 106 } 107 }, 108 { 109 "hide": false, 110 "id": "lastName1", 111 "tip": "Nom de famille", 112 "tab": 2, 113 "pos": [ 114 150, 115 645 116 ], 117 "width": 200, 118 "align": "left", 119 "border": { 120 "width":1, 121 "col": "Gray" 122 }, 123 "label": { 124 "value": "Nom de famille:", 125 "width": 110, 126 "gap": 10, 127 "align": "left", 128 "pos": "left" 129 } 130 }, 131 { 132 "hide": false, 133 "id": "note1", 134 "tip": "Reason", 135 "tab": 12, 136 "multiline": true, 137 "value": "Ceci est un exemple de texte.\nC'est la ligne suivante.", 138 "pos": [ 139 150, 140 132 141 ], 142 "width": 200, 143 "height":70, 144 "align": "left", 145 "border": { 146 "width":1, 147 "col": "Gray" 148 } 149 } 150 ], 151 152 "datefield": [ 153 { 154 "hide": false, 155 "id": "dob1", 156 "tab": 3, 157 "pos": [ 158 150, 159 625 160 ], 161 "width": 70, 162 "format": "dd.mm.yyyy", 163 "border": { 164 "width":1, 165 "col": "Gray" 166 }, 167 "label": { 168 "value": "Date de naissance:", 169 "width": 110, 170 "gap": 10, 171 "align": "left", 172 "pos": "left" 173 } 174 } 175 ], 176 177 "radiobuttongroup": [ 178 { 179 "hide": false, 180 "id": "gender1", 181 "tip": "Le genre", 182 "tab": 4, 183 "orientation": "hor", 184 "//default": "femelle", 185 "pos": [ 186 150, 187 605 188 ], 189 "width": 12, 190 "buttons": { 191 "values": [ 192 "femelle", 193 "mâle", 194 "non binaire" 195 ], 196 "label": { 197 "value": "dummy", 198 "width": 50, 199 "gap": 10, 200 "pos": "right" 201 } 202 }, 203 "label": { 204 "value": "Le genre:", 205 "width": 110, 206 "gap": 10, 207 "align": "left", 208 "pos": "left" 209 } 210 } 211 ], 212 213 "checkbox": [ 214 { 215 "hide": false, 216 "id": "cb11", 217 "tip": "Recherche Google", 218 "tab": 7, 219 "//default": true, 220 "value": false, 221 "pos": [ 222 30, 223 270 224 ], 225 "width": 12, 226 "label": { 227 "value": "Recherche Google", 228 "width": 80, 229 "gap": 5, 230 "align": "left", 231 "pos": "right" 232 } 233 }, 234 { 235 "hide": false, 236 "id": "cb12", 237 "tip": "Recherche Github", 238 "tab": 8, 239 "value": false, 240 "pos": [ 241 30, 242 250 243 ], 244 "width": 12, 245 "label": { 246 "value": "Recherche Github", 247 "width": 80, 248 "gap": 5, 249 "align": "left", 250 "pos": "right" 251 } 252 }, 253 { 254 "hide": false, 255 "id": "cb13", 256 "tip": "Golang Weekly", 257 "tab": 9, 258 "value": false, 259 "pos": [ 260 30, 261 230 262 ], 263 "width": 12, 264 "label": { 265 "value": "Golang Weekly", 266 "width": 80, 267 "gap": 5, 268 "align": "left", 269 "pos": "right" 270 } 271 }, 272 { 273 "hide": false, 274 "id": "cb14", 275 "tip": "Compagnon Gopher", 276 "tab": 10, 277 "value": false, 278 "pos": [ 279 30, 280 210 281 ], 282 "width": 12, 283 "label": { 284 "value": "Compagnon Gopher", 285 "width": 80, 286 "gap": 5, 287 "align": "left", 288 "pos": "right" 289 } 290 }, 291 { 292 "hide": false, 293 "id": "cb15", 294 "tip": "Autre", 295 "tab": 11, 296 "value": false, 297 "pos": [ 298 30, 299 190 300 ], 301 "width": 12, 302 "label": { 303 "value": "Autre:", 304 "width": 80, 305 "gap": 5, 306 "align": "left", 307 "pos": "right" 308 } 309 } 310 ], 311 312 "listbox": [ 313 { 314 "hide": false, 315 "id": "city11", 316 "tip": "Ville préférée", 317 "tab": 5, 318 "options": [ 319 "San Fransisco", 320 "São Paulo", 321 "Vienne" 322 ], 323 "multi": true, 324 "pos": [ 325 150, 326 530 327 ], 328 "width": 200, 329 "height": 42, 330 "border": { 331 "width":1, 332 "col": "Gray" 333 }, 334 "label": { 335 "value": "Ville préférée:", 336 "width": 110, 337 "gap": 10, 338 "align": "left", 339 "pos": "left" 340 } 341 } 342 ], 343 344 "combobox": [ 345 { 346 "hide": false, 347 "id": "city12", 348 "tip": "Ville", 349 "tab": 6, 350 "options": [ 351 "Paris", 352 "Québec", 353 "Yamoussoukro" 354 ], 355 "edit": false, 356 "pos": [ 357 150, 358 500 359 ], 360 "width": 200, 361 "border": { 362 "width":1, 363 "col": "Gray" 364 }, 365 "label": { 366 "value": "Ville:", 367 "width": 110, 368 "gap": 10, 369 "align": "left", 370 "pos": "left" 371 } 372 } 373 ], 374 375 "text": [ 376 { 377 "hide": false, 378 "value": "1) Veuillez nous parler de vous:", 379 "pos": [ 380 10, 381 690 382 ], 383 "font": { 384 "name": "$label" 385 } 386 }, 387 { 388 "hide": false, 389 "value": "2) Comment avez-vous entendu parler de pdfcpu:", 390 "pos": [ 391 10, 392 290 393 ], 394 "font": { 395 "name": "$label" 396 } 397 } 398 ] 399 } 400 }, 401 "2": { 402 "content": { 403 "textfield": [ 404 { 405 "hide": false, 406 "id": "firstName2", 407 "tip": "Prénom", 408 "tab": 1, 409 "value": "Jackie", 410 "pos": [ 411 150, 412 665 413 ], 414 "width": 200, 415 "align": "left", 416 "border": { 417 "width":1, 418 "col": "Gray" 419 }, 420 "label": { 421 "value": "Prénom:", 422 "width": 110, 423 "gap": 10, 424 "align": "left", 425 "pos": "left" 426 } 427 }, 428 { 429 "hide": false, 430 "id": "lastName2", 431 "tip": "Nom de famille", 432 "tab": 2, 433 "value": "Doe", 434 "pos": [ 435 150, 436 645 437 ], 438 "width": 200, 439 "align": "left", 440 "border": { 441 "width":1, 442 "col": "Gray" 443 }, 444 "label": { 445 "value": "Nom de famille:", 446 "width": 110, 447 "gap": 10, 448 "align": "left", 449 "pos": "left" 450 } 451 }, 452 { 453 "hide": false, 454 "id": "note2", 455 "tip": "Reason", 456 "tab": 12, 457 "multiline": true, 458 "value": "Ceci est un exemple de texte.\nC'est la ligne suivante.", 459 "pos": [ 460 150, 461 132 462 ], 463 "width": 200, 464 "height":70, 465 "align": "left", 466 "border": { 467 "width":1, 468 "col": "Gray" 469 } 470 } 471 ], 472 473 "datefield": [ 474 { 475 "hide": false, 476 "id": "dob2", 477 "tab": 3, 478 "value": "31.12.1999", 479 "pos": [ 480 150, 481 625 482 ], 483 "width": 70, 484 "border": { 485 "width":1, 486 "col": "Gray" 487 }, 488 "label": { 489 "value": "Date de naissance:", 490 "width": 110, 491 "gap": 10, 492 "align": "left", 493 "pos": "left" 494 } 495 } 496 ], 497 498 "radiobuttongroup": [ 499 { 500 "hide": false, 501 "id": "gender2", 502 "tip": "Le genre", 503 "tab": 4, 504 "value": "non binaire", 505 "orientation": "hor", 506 "pos": [ 507 150, 508 605 509 ], 510 "width": 12, 511 "buttons": { 512 "values": [ 513 "femelle", 514 "mâle", 515 "non binaire" 516 ], 517 "label": { 518 "value": "dummy", 519 "width": 50, 520 "gap": 10, 521 "pos": "right" 522 } 523 }, 524 "label": { 525 "value": "Le genre:", 526 "width": 110, 527 "gap": 10, 528 "align": "left", 529 "pos": "left" 530 } 531 } 532 ], 533 534 "checkbox": [ 535 { 536 "hide": false, 537 "id": "cb21", 538 "tip": "Recherche Google", 539 "tab": 7, 540 "value": true, 541 "pos": [ 542 30, 543 270 544 ], 545 "width": 12, 546 "label": { 547 "value": "Recherche Google", 548 "width": 80, 549 "gap": 5, 550 "align": "left", 551 "pos": "right" 552 } 553 }, 554 { 555 "hide": false, 556 "id": "cb22", 557 "tip": "Recherche Github", 558 "tab": 8, 559 "value": false, 560 "pos": [ 561 30, 562 250 563 ], 564 "width": 12, 565 "label": { 566 "value": "Recherche Github", 567 "width": 80, 568 "gap": 5, 569 "align": "left", 570 "pos": "right" 571 } 572 }, 573 { 574 "hide": false, 575 "id": "cb23", 576 "tip": "Golang Weekly", 577 "value": false, 578 "pos": [ 579 30, 580 230 581 ], 582 "width": 12, 583 "label": { 584 "value": "Golang Weekly", 585 "width": 80, 586 "gap": 5, 587 "align": "left", 588 "pos": "right" 589 } 590 }, 591 { 592 "hide": false, 593 "id": "cb24", 594 "tip": "Compagnon Gopher", 595 "tab": 10, 596 "value": false, 597 "pos": [ 598 30, 599 210 600 ], 601 "width": 12, 602 "label": { 603 "value": "Compagnon Gopher", 604 "width": 80, 605 "gap": 5, 606 "align": "left", 607 "pos": "right" 608 } 609 }, 610 { 611 "hide": false, 612 "id": "cb25", 613 "tip": "Autre", 614 "tab": 11, 615 "value": false, 616 "pos": [ 617 30, 618 190 619 ], 620 "width": 12, 621 "label": { 622 "value": "Autre:", 623 "width": 80, 624 "gap": 5, 625 "align": "left", 626 "pos": "right" 627 } 628 } 629 ], 630 631 "listbox": [ 632 { 633 "hide": false, 634 "id": "city21", 635 "tip": "Ville préférée", 636 "options": [ 637 "San Fransisco", 638 "São Paulo", 639 "Vienne" 640 ], 641 "multi": false, 642 "value": "San Fransisco", 643 "pos": [ 644 150, 645 530 646 ], 647 "width": 200, 648 "height": 42, 649 "border": { 650 "width":1, 651 "col": "Gray" 652 }, 653 "label": { 654 "value": "Ville préférée:", 655 "width": 110, 656 "gap": 10, 657 "align": "left", 658 "pos": "left" 659 } 660 } 661 ], 662 663 "combobox": [ 664 { 665 "hide": false, 666 "id": "city22", 667 "tip": "Ville", 668 "tab": 6, 669 "options": [ 670 "Paris", 671 "Québec", 672 "Yamoussoukro" 673 ], 674 "edit": false, 675 "value": "Paris", 676 "pos": [ 677 150, 678 500 679 ], 680 "width": 200, 681 "border": { 682 "width":1, 683 "col": "Gray" 684 }, 685 "label": { 686 "value": "Ville:", 687 "width": 110, 688 "gap": 10, 689 "align": "left", 690 "pos": "left" 691 } 692 } 693 ], 694 695 "text": [ 696 { 697 "hide": false, 698 "value": "1) Veuillez nous parler de vous:", 699 "pos": [ 700 10, 701 690 702 ], 703 "font": { 704 "name": "$label" 705 } 706 }, 707 { 708 "hide": false, 709 "value": "2) Comment avez-vous entendu parler de pdfcpu:", 710 "pos": [ 711 10, 712 290 713 ], 714 "font": { 715 "name": "$label" 716 } 717 } 718 ] 719 } 720 } 721 } 722 }