github.com/pdfcpu/pdfcpu@v0.11.1/pkg/testdata/json/form/comboboxGroup.json (about) 1 { 2 "paper": "A4P", 3 "crop": "10", 4 "origin": "LowerLeft", 5 "contentBox": false, 6 "debug": false, 7 "guides": false, 8 "colors": { 9 "DarkOrange": "#FF8C00", 10 "DarkSeaGreen": "#8FBC8F" 11 }, 12 "dirs": { 13 "images": "../../testdata/resources" 14 }, 15 "files": { 16 "logo1": "$images/logoVerySmall.png", 17 "logo2": "$images/github.png" 18 }, 19 "fonts": { 20 "myCourier": { 21 "name": "Courier", 22 "size": 12 23 }, 24 "myCourierBold": { 25 "name": "Courier-Bold", 26 "size": 12 27 }, 28 "input": { 29 "name": "Helvetica", 30 "size": 12, 31 "xcol": "#222222" 32 }, 33 "label": { 34 "name": "Helvetica", 35 "size": 12 36 } 37 }, 38 "margin": { 39 "width": 10 40 }, 41 "header": { 42 "font": { 43 "name": "$myCourierBold", 44 "size": 24, 45 "col": "#C00000" 46 }, 47 "left": "$logo1", 48 "center": "Combobox Groups", 49 "right": "$logo2", 50 "height": 40, 51 "dx": 5, 52 "dy": 5, 53 "border": false 54 }, 55 "footer": { 56 "font": { 57 "name": "Courier", 58 "size": 9 59 }, 60 "left": "pdfcpu: %v\nCreated: %t", 61 "center": "Optimized for A.Reader\nPage %p of %P", 62 "right": "Source:\ntestdata/json/form/comboboxGroup.json", 63 "height": 30, 64 "dx": 5, 65 "dy": 5, 66 "border": false 67 }, 68 "images": { 69 "logo1": { 70 "src": "$logo1", 71 "url": "https://pdfcpu.io", 72 "margin": { 73 "width": 5 74 } 75 }, 76 "logo2": { 77 "src": "$logo2", 78 "url": "https://github.com/pdfcpu/pdfcpu", 79 "margin": { 80 "width": 5 81 } 82 } 83 }, 84 "fieldgroups": { 85 "cbg": { 86 "hide": false, 87 "bgCol": "White", 88 "border": { 89 "width": 0, 90 "col": "Black", 91 "style": "round" 92 }, 93 "padding": { 94 "width": 6 95 } 96 } 97 }, 98 "pages": { 99 "1": { 100 "bgcol": "LightGray", 101 "content": { 102 "guides": [ 103 { 104 "pos": [ 105 150, 106 650 107 ] 108 }, 109 { 110 "pos": [ 111 250, 112 650 113 ] 114 } 115 ], 116 "fieldGroup": [ 117 { 118 "name": "$cbg", 119 "combobox": [ 120 { 121 "hide": false, 122 "id": "llgender", 123 "tip": "Gender", 124 "value": "male", 125 "options": [ 126 "female", 127 "male", 128 "non binary" 129 ], 130 "edit": false, 131 "pos": [ 132 150, 133 650 134 ], 135 "width": 100, 136 "border": { 137 "width": 1, 138 "col": "Black" 139 }, 140 "label": { 141 "value": "Gender:", 142 "width": 60, 143 "gap": 10, 144 "align": "left", 145 "pos": "left" 146 } 147 }, 148 { 149 "hide": false, 150 "id": "llsex", 151 "tip": "Sex", 152 "options": [ 153 "female", 154 "male", 155 "diverse", 156 "inter", 157 "undefined", 158 "no entry" 159 ], 160 "edit": false, 161 "pos": [ 162 150, 163 620 164 ], 165 "width": 100, 166 "border": { 167 "width": 1, 168 "col": "Black" 169 }, 170 "label": { 171 "value": "Sex:", 172 "width": 60, 173 "gap": 10, 174 "align": "left", 175 "pos": "left" 176 } 177 } 178 ] 179 }, 180 { 181 "name": "$cbg", 182 "combobox": [ 183 { 184 "hide": false, 185 "id": "lrgender", 186 "tip": "Gender", 187 "options": [ 188 "female", 189 "male", 190 "non binary" 191 ], 192 "edit": false, 193 "pos": [ 194 400, 195 650 196 ], 197 "width": 100, 198 "border": { 199 "width": 1, 200 "col": "Black" 201 }, 202 "label": { 203 "value": "Gender:", 204 "width": 60, 205 "gap": 10, 206 "align": "right", 207 "pos": "left" 208 } 209 }, 210 { 211 "hide": false, 212 "id": "lrsex", 213 "tip": "Sex", 214 "options": [ 215 "female", 216 "male", 217 "diverse", 218 "inter", 219 "undefined", 220 "no entry" 221 ], 222 "edit": false, 223 "pos": [ 224 400, 225 620 226 ], 227 "width": 100, 228 "border": { 229 "width": 1, 230 "col": "Black" 231 }, 232 "label": { 233 "value": "Sex:", 234 "width": 60, 235 "gap": 10, 236 "align": "right", 237 "pos": "left" 238 } 239 } 240 ] 241 }, 242 { 243 "name": "$cbg", 244 "combobox": [ 245 { 246 "hide": false, 247 "id": "llegender", 248 "tip": "Gender", 249 "options": [ 250 "female", 251 "male", 252 "non binary" 253 ], 254 "edit": true, 255 "pos": [ 256 150, 257 540 258 ], 259 "width": 100, 260 "bgcol": "#B0B0B0", 261 "label": { 262 "value": "Gender:", 263 "width": 60, 264 "gap": 10, 265 "align": "left", 266 "pos": "left" 267 } 268 }, 269 { 270 "hide": false, 271 "id": "llesex", 272 "tip": "Sex", 273 "options": [ 274 "female", 275 "male", 276 "diverse", 277 "inter", 278 "undefined", 279 "no entry" 280 ], 281 "edit": true, 282 "pos": [ 283 150, 284 510 285 ], 286 "width": 100, 287 "bgcol": "#B0B0B0", 288 "label": { 289 "value": "Sex:", 290 "width": 60, 291 "gap": 10, 292 "align": "left", 293 "pos": "left" 294 } 295 } 296 ] 297 }, 298 { 299 "name": "$cbg", 300 "combobox": [ 301 { 302 "hide": false, 303 "id": "lregender", 304 "tip": "Gender", 305 "options": [ 306 "female", 307 "male", 308 "non binary" 309 ], 310 "edit": true, 311 "pos": [ 312 400, 313 540 314 ], 315 "width": 100, 316 "bgcol": "#B0B0B0", 317 "border": { 318 "width": 1, 319 "col": "Black" 320 }, 321 "label": { 322 "value": "Gender:", 323 "width": 60, 324 "gap": 10, 325 "align": "right", 326 "pos": "left" 327 } 328 }, 329 { 330 "hide": false, 331 "id": "lresex", 332 "tip": "Sex", 333 "options": [ 334 "female", 335 "male", 336 "diverse", 337 "inter", 338 "undefined", 339 "no entry" 340 ], 341 "edit": true, 342 "pos": [ 343 400, 344 510 345 ], 346 "width": 100, 347 "bgcol": "#B0B0B0", 348 "border": { 349 "width": 1, 350 "col": "Black" 351 }, 352 "label": { 353 "value": "Sex:", 354 "width": 60, 355 "gap": 10, 356 "align": "right", 357 "pos": "left" 358 } 359 } 360 ] 361 }, 362 { 363 "name": "$cbg", 364 "combobox": [ 365 { 366 "hide": false, 367 "id": "rlgender", 368 "tip": "Gender", 369 "options": [ 370 "female", 371 "male", 372 "non binary" 373 ], 374 "edit": false, 375 "pos": [ 376 150, 377 420 378 ], 379 "width": 100, 380 "bgcol": "Gray", 381 "label": { 382 "value": "Gender", 383 "width": 60, 384 "gap": 10, 385 "align": "left", 386 "pos": "right" 387 } 388 }, 389 { 390 "hide": false, 391 "id": "rlsex", 392 "tip": "Sex", 393 "options": [ 394 "female", 395 "male", 396 "diverse", 397 "inter", 398 "undefined", 399 "no entry" 400 ], 401 "edit": false, 402 "pos": [ 403 150, 404 390 405 ], 406 "width": 100, 407 "bgcol": "Gray", 408 "label": { 409 "value": "Sex", 410 "width": 60, 411 "gap": 10, 412 "align": "left", 413 "pos": "right" 414 } 415 } 416 ] 417 }, 418 { 419 "name": "$cbg", 420 "combobox": [ 421 { 422 "hide": false, 423 "id": "rrgender", 424 "tip": "Gender", 425 "options": [ 426 "female", 427 "male", 428 "non binary" 429 ], 430 "edit": false, 431 "pos": [ 432 400, 433 420 434 ], 435 "width": 100, 436 "bgcol": "Gray", 437 "border": { 438 "width": 1, 439 "col": "Black" 440 }, 441 "label": { 442 "value": "Gender", 443 "width": 40, 444 "gap": 10, 445 "align": "right", 446 "pos": "right" 447 } 448 }, 449 { 450 "hide": false, 451 "id": "rrsex", 452 "tip": "Sex", 453 "options": [ 454 "female", 455 "male", 456 "diverse", 457 "inter", 458 "undefined", 459 "no entry" 460 ], 461 "edit": false, 462 "pos": [ 463 400, 464 390 465 ], 466 "width": 100, 467 "bgcol": "Gray", 468 "border": { 469 "width": 1, 470 "col": "Black" 471 }, 472 "label": { 473 "value": "Sex", 474 "width": 40, 475 "gap": 10, 476 "align": "right", 477 "pos": "right" 478 } 479 } 480 ] 481 }, 482 { 483 "name": "$cbg", 484 "combobox": [ 485 { 486 "hide": false, 487 "id": "rlegender", 488 "tip": "Gender", 489 "options": [ 490 "female", 491 "male", 492 "non binary" 493 ], 494 "edit": true, 495 "pos": [ 496 150, 497 310 498 ], 499 "width": 100, 500 "bgCol": "$DarkOrange", 501 "label": { 502 "value": "Gender", 503 "width": 60, 504 "gap": 10, 505 "align": "left", 506 "pos": "right" 507 } 508 }, 509 { 510 "hide": false, 511 "id": "rlesex", 512 "tip": "Sex", 513 "options": [ 514 "female", 515 "male", 516 "diverse", 517 "inter", 518 "undefined", 519 "no entry" 520 ], 521 "edit": true, 522 "pos": [ 523 150, 524 280 525 ], 526 "width": 100, 527 "bgCol": "$DarkOrange", 528 "label": { 529 "value": "Sex", 530 "width": 60, 531 "gap": 10, 532 "align": "left", 533 "pos": "right" 534 } 535 } 536 ] 537 }, 538 { 539 "name": "$cbg", 540 "combobox": [ 541 { 542 "hide": false, 543 "id": "rregender", 544 "tip": "Gender", 545 "options": [ 546 "female", 547 "male", 548 "non binary" 549 ], 550 "edit": true, 551 "pos": [ 552 400, 553 310 554 ], 555 "width": 100, 556 "bgCol": "$DarkOrange", 557 "border": { 558 "width": 1, 559 "col": "Black" 560 }, 561 "label": { 562 "value": "Gender", 563 "width": 40, 564 "gap": 10, 565 "align": "right", 566 "pos": "right" 567 } 568 }, 569 { 570 "hide": false, 571 "id": "rresex", 572 "tip": "Sex", 573 "options": [ 574 "female", 575 "male", 576 "diverse", 577 "inter", 578 "undefined", 579 "no entry" 580 ], 581 "edit": true, 582 "pos": [ 583 400, 584 280 585 ], 586 "width": 100, 587 "bgCol": "$DarkOrange", 588 "border": { 589 "width": 1, 590 "col": "Black" 591 }, 592 "label": { 593 "value": "Sex", 594 "width": 40, 595 "gap": 10, 596 "align": "right", 597 "pos": "right" 598 } 599 } 600 ] 601 }, 602 { 603 "name": "$cbg", 604 "combobox": [ 605 { 606 "hide": false, 607 "id": "tlgender", 608 "tip": "Gender", 609 "options": [ 610 "female", 611 "male", 612 "non binary" 613 ], 614 "edit": false, 615 "pos": [ 616 100, 617 160 618 ], 619 "width": 100, 620 "border": { 621 "width": 1, 622 "col": "#FF0000" 623 }, 624 "label": { 625 "value": "Gender", 626 "width": 60, 627 "gap": 0, 628 "align": "left", 629 "pos": "top" 630 } 631 }, 632 { 633 "hide": false, 634 "id": "tcgender", 635 "tip": "Gender", 636 "options": [ 637 "female", 638 "male", 639 "non binary" 640 ], 641 "edit": false, 642 "pos": [ 643 250, 644 160 645 ], 646 "width": 100, 647 "border": { 648 "width": 1, 649 "col": "#FF0000" 650 }, 651 "label": { 652 "value": "Gender", 653 "width": 60, 654 "gap": 0, 655 "align": "center", 656 "pos": "top" 657 } 658 }, 659 { 660 "hide": false, 661 "id": "trgender", 662 "tip": "Gender", 663 "options": [ 664 "female", 665 "male", 666 "non binary" 667 ], 668 "edit": false, 669 "pos": [ 670 400, 671 160 672 ], 673 "width": 100, 674 "border": { 675 "width": 1, 676 "col": "#FF0000" 677 }, 678 "label": { 679 "value": "Gender", 680 "width": 60, 681 "gap": 0, 682 "align": "right", 683 "pos": "top" 684 } 685 } 686 ] 687 }, 688 { 689 "name": "$cbg", 690 "combobox": [ 691 { 692 "hide": false, 693 "id": "tlegender", 694 "tip": "Gender", 695 "options": [ 696 "female", 697 "male", 698 "non binary" 699 ], 700 "edit": true, 701 "pos": [ 702 100, 703 50 704 ], 705 "width": 100, 706 "border": { 707 "width": 1, 708 "col": "Gray" 709 }, 710 "label": { 711 "value": "Gender", 712 "width": 60, 713 "gap": 0, 714 "align": "left", 715 "pos": "top" 716 } 717 }, 718 { 719 "hide": false, 720 "id": "tcegender", 721 "tip": "Gender", 722 "options": [ 723 "female", 724 "male", 725 "non binary" 726 ], 727 "edit": true, 728 "pos": [ 729 250, 730 50 731 ], 732 "width": 100, 733 "border": { 734 "width": 1, 735 "col": "Gray" 736 }, 737 "label": { 738 "value": "Gender", 739 "width": 60, 740 "gap": 0, 741 "align": "center", 742 "pos": "top" 743 } 744 }, 745 { 746 "hide": false, 747 "id": "tregender", 748 "tip": "Gender", 749 "options": [ 750 "female", 751 "male", 752 "non binary" 753 ], 754 "edit": true, 755 "pos": [ 756 400, 757 50 758 ], 759 "width": 100, 760 "border": { 761 "width": 1, 762 "col": "Gray" 763 }, 764 "label": { 765 "value": "Gender", 766 "width": 60, 767 "gap": 0, 768 "align": "right", 769 "pos": "top" 770 } 771 } 772 ] 773 } 774 ], 775 "text": [ 776 { 777 "value": "Combobox with left label:", 778 "pos": [ 779 10, 780 690 781 ], 782 "font": { 783 "name": "$myCourier" 784 } 785 }, 786 { 787 "value": "Editable:", 788 "pos": [ 789 30, 790 575 791 ], 792 "font": { 793 "name": "$myCourier" 794 } 795 }, 796 { 797 "value": "Combobox with right label:", 798 "pos": [ 799 10, 800 460 801 ], 802 "font": { 803 "name": "$myCourier" 804 } 805 }, 806 { 807 "value": "Editable:", 808 "pos": [ 809 30, 810 345 811 ], 812 "font": { 813 "name": "$myCourier" 814 } 815 }, 816 { 817 "value": "Combobox with top label:", 818 "pos": [ 819 10, 820 230 821 ], 822 "font": { 823 "name": "$myCourier" 824 } 825 }, 826 { 827 "value": "Editable:", 828 "pos": [ 829 30, 830 115 831 ], 832 "font": { 833 "name": "$myCourier" 834 } 835 } 836 ] 837 } 838 } 839 } 840 }