github.com/pdfcpu/pdfcpu@v0.11.1/pkg/testdata/json/form/demo/german.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": "Demo Formular", 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/german.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": "Vorname", 89 "tab": 1, 90 "pos": [ 91 120, 92 665 93 ], 94 "width": 220, 95 "align": "left", 96 "border": { 97 "width":1, 98 "col": "Gray" 99 }, 100 "label": { 101 "value": "Vorname:", 102 "width": 80, 103 "gap": 10, 104 "align": "left", 105 "pos": "left" 106 } 107 }, 108 { 109 "hide": false, 110 "id": "lastName1", 111 "tip": "Familienname", 112 "tab": 2, 113 "pos": [ 114 120, 115 645 116 ], 117 "width": 220, 118 "align": "left", 119 "border": { 120 "width":1, 121 "col": "Gray" 122 }, 123 "label": { 124 "value": "Familienname:", 125 "width": 80, 126 "gap": 10, 127 "align": "left", 128 "pos": "left" 129 } 130 }, 131 { 132 "hide": false, 133 "id": "note1", 134 "tip": "Grund", 135 "tab": 12, 136 "multiline": true, 137 "value": "Dies ist ein beispielhafter Text.\nDas ist die nächste Zeile.", 138 "pos": [ 139 120, 140 132 141 ], 142 "width": 220, 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 "format": "dd.mm.yyyy", 158 "pos": [ 159 120, 160 625 161 ], 162 "width": 70, 163 "border": { 164 "width":1, 165 "col": "Gray" 166 }, 167 "label": { 168 "value": "Geburtsdatum:", 169 "width": 80, 170 "gap": 10, 171 "align": "left", 172 "pos": "left" 173 } 174 } 175 ], 176 177 "radiobuttongroup": [ 178 { 179 "hide": false, 180 "id": "gender1", 181 "tip": "Geschlecht", 182 "tab": 4, 183 "orientation": "hor", 184 "pos": [ 185 120, 186 605 187 ], 188 "width": 12, 189 "buttons": { 190 "values": [ 191 "weiblich", 192 "männlich", 193 "kein Eintrag" 194 ], 195 "label": { 196 "value": "dummy", 197 "width": 50, 198 "gap": 10, 199 "pos": "right" 200 } 201 }, 202 "label": { 203 "value": "Geschlecht:", 204 "width": 80, 205 "gap": 10, 206 "align": "left", 207 "pos": "left" 208 } 209 } 210 ], 211 212 "checkbox": [ 213 { 214 "hide": false, 215 "id": "cb11", 216 "tab": 7, 217 "tip": "Google Search", 218 "value": false, 219 "pos": [ 220 30, 221 270 222 ], 223 "width": 12, 224 "label": { 225 "value": "Google Search", 226 "width": 80, 227 "gap": 5, 228 "align": "left", 229 "pos": "right" 230 } 231 }, 232 { 233 "hide": false, 234 "id": "cb12", 235 "tip": "Github Search", 236 "tab": 8, 237 "value": false, 238 "pos": [ 239 30, 240 250 241 ], 242 "width": 12, 243 "label": { 244 "value": "Github Search", 245 "width": 80, 246 "gap": 5, 247 "align": "left", 248 "pos": "right" 249 } 250 }, 251 { 252 "hide": false, 253 "id": "cb13", 254 "tip": "Golang Weekly", 255 "tab": 9, 256 "value": false, 257 "pos": [ 258 30, 259 230 260 ], 261 "width": 12, 262 "label": { 263 "value": "Golang Weekly", 264 "width": 80, 265 "gap": 5, 266 "align": "left", 267 "pos": "right" 268 } 269 }, 270 { 271 "hide": false, 272 "id": "cb14", 273 "tip": "Gopher Kollege", 274 "tab": 10, 275 "value": false, 276 "pos": [ 277 30, 278 210 279 ], 280 "width": 12, 281 "label": { 282 "value": "Gopher Kollege", 283 "width": 80, 284 "gap": 5, 285 "align": "left", 286 "pos": "right" 287 } 288 }, 289 { 290 "hide": false, 291 "id": "cb15", 292 "tip": "Sonstiges", 293 "tab": 11, 294 "value": false, 295 "pos": [ 296 30, 297 190 298 ], 299 "width": 12, 300 "label": { 301 "value": "Sonstiges:", 302 "width": 80, 303 "gap": 5, 304 "align": "left", 305 "pos": "right" 306 } 307 } 308 ], 309 310 "listbox": [ 311 { 312 "hide": false, 313 "id": "city11", 314 "tip": "Lieblingsstadt", 315 "tab": 5, 316 "options": [ 317 "San Francisco", 318 "São Paulo", 319 "Wien" 320 ], 321 "multi": true, 322 "pos": [ 323 120, 324 530 325 ], 326 "width": 220, 327 "height": 42, 328 "border": { 329 "width":1, 330 "col": "Gray" 331 }, 332 "label": { 333 "value": "Lieblingsstadt:", 334 "width": 80, 335 "gap": 10, 336 "align": "left", 337 "pos": "left" 338 } 339 } 340 ], 341 342 "combobox": [ 343 { 344 "hide": false, 345 "id": "city12", 346 "tip": "Stadt", 347 "tab": 6, 348 "options": [ 349 "Berlin", 350 "Wien", 351 "Zürich" 352 ], 353 "edit": false, 354 "pos": [ 355 120, 356 500 357 ], 358 "width": 220, 359 "border": { 360 "width":1, 361 "col": "Gray" 362 }, 363 "label": { 364 "value": "Stadt:", 365 "width": 80, 366 "gap": 10, 367 "align": "left", 368 "pos": "left" 369 } 370 } 371 ], 372 373 "text": [ 374 { 375 "hide": false, 376 "value": "1) Bitte erzähle uns über dich:", 377 "pos": [ 378 10, 379 690 380 ], 381 "font": { 382 "name": "$label" 383 } 384 }, 385 { 386 "hide": false, 387 "value": "2) Wie hast du über pdfcpu erfahren?", 388 "pos": [ 389 10, 390 290 391 ], 392 "font": { 393 "name": "$label" 394 } 395 } 396 ] 397 } 398 }, 399 "2": { 400 "content": { 401 "textfield": [ 402 { 403 "hide": false, 404 "id": "firstName2", 405 "tip": "Vorname", 406 "tab": 1, 407 "value": "Jackie", 408 "pos": [ 409 120, 410 665 411 ], 412 "width": 220, 413 "align": "left", 414 "border": { 415 "width":1, 416 "col": "Gray" 417 }, 418 "label": { 419 "value": "Vorname:", 420 "width": 80, 421 "gap": 10, 422 "align": "left", 423 "pos": "left" 424 } 425 }, 426 { 427 "hide": false, 428 "id": "lastName2", 429 "tip": "Familienname", 430 "tab": 2, 431 "value": "Doe", 432 "pos": [ 433 120, 434 645 435 ], 436 "width": 220, 437 "align": "left", 438 "border": { 439 "width":1, 440 "col": "Gray" 441 }, 442 "label": { 443 "value": "Familienname:", 444 "width": 80, 445 "gap": 10, 446 "align": "left", 447 "pos": "left" 448 } 449 }, 450 { 451 "hide": false, 452 "id": "note2", 453 "tip": "Grund", 454 "tab": 12, 455 "multiline": true, 456 "value": "Dies ist ein beispielhafter Text.\nDas ist die nächste Zeile.", 457 "pos": [ 458 120, 459 132 460 ], 461 "width": 220, 462 "height":70, 463 "align": "left", 464 "border": { 465 "width":1, 466 "col": "Gray" 467 } 468 } 469 ], 470 471 "datefield": [ 472 { 473 "hide": false, 474 "id": "dob2", 475 "tab": 3, 476 "value": "31.12.1999", 477 "pos": [ 478 120, 479 625 480 ], 481 "width": 70, 482 "border": { 483 "width":1, 484 "col": "Gray" 485 }, 486 "label": { 487 "value": "Geburtsdatum:", 488 "width": 80, 489 "gap": 10, 490 "align": "left", 491 "pos": "left" 492 } 493 } 494 ], 495 496 "radiobuttongroup": [ 497 { 498 "hide": false, 499 "id": "gender2", 500 "tip": "Geschlecht", 501 "tab": 4, 502 "value": "kein Eintrag", 503 "orientation": "hor", 504 "pos": [ 505 120, 506 605 507 ], 508 "width": 12, 509 "buttons": { 510 "values": [ 511 "weiblich", 512 "männlich", 513 "kein Eintrag" 514 ], 515 "label": { 516 "value": "dummy", 517 "width": 50, 518 "gap": 10, 519 "pos": "right" 520 } 521 }, 522 "label": { 523 "value": "Geschlecht:", 524 "width": 80, 525 "gap": 10, 526 "align": "left", 527 "pos": "left" 528 } 529 } 530 ], 531 532 "checkbox": [ 533 { 534 "hide": false, 535 "id": "cb21", 536 "tip": "Google Search", 537 "tab": 7, 538 "value": true, 539 "pos": [ 540 30, 541 270 542 ], 543 "width": 12, 544 "label": { 545 "value": "Google Search", 546 "width": 80, 547 "gap": 5, 548 "align": "left", 549 "pos": "right" 550 } 551 }, 552 { 553 "hide": false, 554 "id": "cb22", 555 "tip": "Github Search", 556 "tab": 8, 557 "value": false, 558 "pos": [ 559 30, 560 250 561 ], 562 "width": 12, 563 "label": { 564 "value": "Github Search", 565 "width": 80, 566 "gap": 5, 567 "align": "left", 568 "pos": "right" 569 } 570 }, 571 { 572 "hide": false, 573 "id": "cb23", 574 "tip": "Golang Weekly", 575 "tab": 9, 576 "value": false, 577 "pos": [ 578 30, 579 230 580 ], 581 "width": 12, 582 "label": { 583 "value": "Golang Weekly", 584 "width": 80, 585 "gap": 5, 586 "align": "left", 587 "pos": "right" 588 } 589 }, 590 { 591 "hide": false, 592 "id": "cb24", 593 "tip": "Gopher Kollege", 594 "tab": 10, 595 "value": false, 596 "pos": [ 597 30, 598 210 599 ], 600 "width": 12, 601 "label": { 602 "value": "Gopher Kollege", 603 "width": 80, 604 "gap": 5, 605 "align": "left", 606 "pos": "right" 607 } 608 }, 609 { 610 "hide": false, 611 "id": "cb25", 612 "tip": "Sonstiges", 613 "tab": 11, 614 "value": false, 615 "pos": [ 616 30, 617 190 618 ], 619 "width": 12, 620 "label": { 621 "value": "Sonstiges:", 622 "width": 80, 623 "gap": 5, 624 "align": "left", 625 "pos": "right" 626 } 627 } 628 ], 629 630 "listbox": [ 631 { 632 "hide": false, 633 "id": "city21", 634 "tip": "Lieblingsstadt", 635 "tab": 5, 636 "options": [ 637 "San Francisco", 638 "São Paulo", 639 "Wien" 640 ], 641 "multi": false, 642 "value": "San Francisco", 643 "pos": [ 644 120, 645 530 646 ], 647 "width": 220, 648 "height": 42, 649 "border": { 650 "width":1, 651 "col": "Gray" 652 }, 653 "label": { 654 "value": "Lieblingsstadt:", 655 "width": 80, 656 "gap": 10, 657 "align": "left", 658 "pos": "left" 659 } 660 } 661 ], 662 663 "combobox": [ 664 { 665 "hide": false, 666 "id": "city22", 667 "tip": "Stadt", 668 "tab": 6, 669 "options": [ 670 "Berlin", 671 "Wien", 672 "Zürich" 673 ], 674 "edit": false, 675 "value": "Wien", 676 "pos": [ 677 120, 678 500 679 ], 680 "width": 220, 681 "border": { 682 "width":1, 683 "col": "Gray" 684 }, 685 "label": { 686 "value": "Stadt:", 687 "width": 80, 688 "gap": 10, 689 "align": "left", 690 "pos": "left" 691 } 692 } 693 ], 694 695 "text": [ 696 { 697 "hide": false, 698 "value": "1) Bitte erzähle uns über dich:", 699 "pos": [ 700 10, 701 690 702 ], 703 "font": { 704 "name": "$label" 705 } 706 }, 707 { 708 "hide": false, 709 "value": "2) Wie hast du über pdfcpu erfahren?", 710 "pos": [ 711 10, 712 290 713 ], 714 "font": { 715 "name": "$label" 716 } 717 } 718 ] 719 } 720 } 721 } 722 }