github.com/pdfcpu/pdfcpu@v0.11.1/pkg/testdata/json/form/radiobuttonsHor.json (about) 1 { 2 "paper": "A4P", 3 "crop": "10", 4 "origin": "LowerLeft", 5 "contentBox": true, 6 "debug": false, 7 "guides": false, 8 "dirs": { 9 "images": "../../testdata/resources" 10 }, 11 "files": { 12 "logo1": "$images/logoVerySmall.png", 13 "logo2": "$images/github.png" 14 }, 15 "margin": { 16 "width": 10 17 }, 18 "fonts": { 19 "myCourier": { 20 "name": "Courier", 21 "size": 12 22 }, 23 "myCourierBold": { 24 "name": "Courier-Bold", 25 "size": 12 26 }, 27 "label": { 28 "name": "Courier", 29 "size": 10 30 } 31 }, 32 "header": { 33 "font": { 34 "name": "$myCourierBold", 35 "size": 24, 36 "col": "#C00000" 37 }, 38 "left": "$logo1", 39 "center": "Horizontal Radiobuttons", 40 "right": "$logo2", 41 "height": 40, 42 "dx": 5, 43 "dy": 5, 44 "border": false 45 }, 46 "footer": { 47 "font": { 48 "name": "$myCourier", 49 "size": 9 50 }, 51 "left": "pdfcpu: %v\nCreated: %t", 52 "center": "Optimized for A.Reader\nPage %p of %P", 53 "right": "Source:\ntestdata/json/form/radiobuttonsHor.json", 54 "height": 30, 55 "dx": 5, 56 "dy": 5, 57 "border": false 58 }, 59 "images": { 60 "logo1": { 61 "src": "$logo1", 62 "url": "https://pdfcpu.io", 63 "margin": { 64 "width": 5 65 } 66 }, 67 "logo2": { 68 "src": "$logo2", 69 "url": "https://github.com/pdfcpu/pdfcpu", 70 "margin": { 71 "width": 5 72 } 73 } 74 }, 75 "pages": { 76 "1": { 77 "bgcol": "LightGray", 78 "content": { 79 "guides": [ 80 { 81 "pos": [ 82 10, 83 490 84 ] 85 }, 86 { 87 "pos": [ 88 290, 89 490 90 ] 91 } 92 ], 93 "radiobuttongroup": [ 94 { 95 "hide": false, 96 "id": "rllgender", 97 "tip": "Gender", 98 "value": "female", 99 "orientation": "hor", 100 "pos": [ 101 70, 102 670 103 ], 104 "width": 12, 105 "buttons": { 106 "values": [ 107 "female", 108 "male", 109 "non-binary" 110 ], 111 "label": { 112 "value": "dummy", 113 "width": 50, 114 "gap": 10, 115 "pos": "right" 116 } 117 }, 118 "label": { 119 "value": "Gender:", 120 "width": 60, 121 "gap": 5, 122 "align": "left", 123 "pos": "left", 124 "font": { 125 "name": "$myCourierBold" 126 } 127 } 128 }, 129 { 130 "hide": false, 131 "id": "rllsex", 132 "tip": "Sex", 133 "orientation": "hor", 134 "pos": [ 135 70, 136 650 137 ], 138 "width": 12, 139 "buttons": { 140 "values": [ 141 "male", 142 "female", 143 "non-binary" 144 ], 145 "label": { 146 "value": "dummy", 147 "width": 50, 148 "gap": 10, 149 "pos": "right" 150 } 151 }, 152 "label": { 153 "value": "Sex:", 154 "width": 60, 155 "gap": 5, 156 "align": "left", 157 "pos": "left", 158 "font": { 159 "name": "$myCourierBold" 160 } 161 } 162 }, 163 { 164 "hide": false, 165 "id": "rlrgender", 166 "tip": "Gender", 167 "orientation": "hor", 168 "pos": [ 169 70, 170 610 171 ], 172 "width": 12, 173 "buttons": { 174 "values": [ 175 "female", 176 "male", 177 "non-binary" 178 ], 179 "label": { 180 "value": "dummy", 181 "width": 50, 182 "gap": 10, 183 "pos": "right" 184 } 185 }, 186 "label": { 187 "value": "Gender:", 188 "width": 60, 189 "gap": 5, 190 "align": "right", 191 "pos": "left", 192 "font": { 193 "name": "$myCourierBold" 194 } 195 } 196 }, 197 { 198 "hide": false, 199 "id": "rlrsex", 200 "tip": "Sex", 201 "orientation": "hor", 202 "pos": [ 203 70, 204 590 205 ], 206 "width": 12, 207 "buttons": { 208 "values": [ 209 "male", 210 "female", 211 "non-binary" 212 ], 213 "label": { 214 "value": "dummy", 215 "width": 50, 216 "gap": 10, 217 "pos": "right" 218 } 219 }, 220 "label": { 221 "value": "Sex:", 222 "width": 60, 223 "gap": 5, 224 "align": "right", 225 "pos": "left", 226 "font": { 227 "name": "$myCourierBold" 228 } 229 } 230 }, 231 { 232 "hide": false, 233 "id": "lllgender", 234 "tip": "Gender", 235 "orientation": "hor", 236 "pos": [ 237 350, 238 670 239 ], 240 "width": 12, 241 "buttons": { 242 "values": [ 243 "non-binary", 244 "male", 245 "female" 246 ], 247 "label": { 248 "value": "dummy", 249 "width": 50, 250 "gap": 10, 251 "pos": "left" 252 } 253 }, 254 "label": { 255 "value": "Gender:", 256 "width": 60, 257 "gap": 5, 258 "align": "left", 259 "pos": "left", 260 "font": { 261 "name": "$myCourierBold" 262 } 263 } 264 }, 265 { 266 "hide": false, 267 "id": "lllsex", 268 "tip": "Sex", 269 "orientation": "hor", 270 "pos": [ 271 350, 272 650 273 ], 274 "width": 12, 275 "buttons": { 276 "values": [ 277 "non-binary", 278 "female", 279 "male" 280 ], 281 "label": { 282 "value": "dummy", 283 "width": 50, 284 "gap": 10, 285 "pos": "left" 286 } 287 }, 288 "label": { 289 "value": "Sex:", 290 "width": 60, 291 "gap": 5, 292 "align": "left", 293 "pos": "left", 294 "font": { 295 "name": "$myCourierBold" 296 } 297 } 298 }, 299 { 300 "hide": false, 301 "id": "llrgender", 302 "tip": "Gender", 303 "orientation": "hor", 304 "pos": [ 305 350, 306 610 307 ], 308 "width": 12, 309 "buttons": { 310 "values": [ 311 "non-binary", 312 "male", 313 "female" 314 ], 315 "label": { 316 "value": "dummy", 317 "width": 50, 318 "gap": 10, 319 "pos": "left" 320 } 321 }, 322 "label": { 323 "value": "Gender:", 324 "width": 60, 325 "gap": 5, 326 "align": "right", 327 "pos": "left", 328 "font": { 329 "name": "$myCourierBold" 330 } 331 } 332 }, 333 { 334 "hide": false, 335 "id": "llrrsex", 336 "tip": "Sex", 337 "orientation": "hor", 338 "pos": [ 339 350, 340 590 341 ], 342 "width": 12, 343 "buttons": { 344 "values": [ 345 "non-binary", 346 "female", 347 "male" 348 ], 349 "label": { 350 "value": "dummy", 351 "width": 50, 352 "gap": 10, 353 "pos": "left" 354 } 355 }, 356 "label": { 357 "value": "Sex:", 358 "width": 60, 359 "gap": 5, 360 "align": "right", 361 "pos": "left", 362 "font": { 363 "name": "$myCourierBold" 364 } 365 } 366 }, 367 { 368 "hide": false, 369 "id": "rrlgender", 370 "tip": "Gender", 371 "orientation": "hor", 372 "pos": [ 373 10, 374 490 375 ], 376 "width": 12, 377 "buttons": { 378 "values": [ 379 "female", 380 "male", 381 "non-binary" 382 ], 383 "label": { 384 "value": "dummy", 385 "width": 50, 386 "gap": 10, 387 "pos": "right" 388 } 389 }, 390 "label": { 391 "value": "Gender", 392 "width": 60, 393 "gap": 5, 394 "align": "left", 395 "pos": "right", 396 "font": { 397 "name": "$myCourierBold" 398 } 399 } 400 }, 401 { 402 "hide": false, 403 "id": "rrlsex", 404 "tip": "Sex", 405 "orientation": "hor", 406 "pos": [ 407 10, 408 470 409 ], 410 "width": 12, 411 "buttons": { 412 "values": [ 413 "male", 414 "female", 415 "non-binary" 416 ], 417 "label": { 418 "value": "dummy", 419 "width": 50, 420 "gap": 10, 421 "pos": "right" 422 } 423 }, 424 "label": { 425 "value": "Sex", 426 "width": 60, 427 "gap": 5, 428 "align": "left", 429 "pos": "right", 430 "font": { 431 "name": "$myCourierBold" 432 } 433 } 434 }, 435 { 436 "hide": false, 437 "id": "rrrgender", 438 "tip": "Gender", 439 "orientation": "hor", 440 "pos": [ 441 10, 442 430 443 ], 444 "width": 12, 445 "buttons": { 446 "values": [ 447 "female", 448 "male", 449 "non-binary" 450 ], 451 "label": { 452 "value": "dummy", 453 "width": 50, 454 "gap": 10, 455 "pos": "right" 456 } 457 }, 458 "label": { 459 "value": "Gender", 460 "width": 60, 461 "gap": 5, 462 "align": "right", 463 "pos": "right", 464 "font": { 465 "name": "$myCourierBold" 466 } 467 } 468 }, 469 { 470 "hide": false, 471 "id": "rrrsex", 472 "tip": "Sex", 473 "orientation": "hor", 474 "pos": [ 475 10, 476 410 477 ], 478 "width": 12, 479 "buttons": { 480 "values": [ 481 "male", 482 "female", 483 "non-binary" 484 ], 485 "label": { 486 "value": "dummy", 487 "width": 50, 488 "gap": 10, 489 "pos": "right" 490 } 491 }, 492 "label": { 493 "value": "Sex", 494 "width": 60, 495 "gap": 5, 496 "align": "right", 497 "pos": "right", 498 "font": { 499 "name": "$myCourierBold" 500 } 501 } 502 }, 503 { 504 "hide": false, 505 "id": "lrlgender", 506 "tip": "Gender", 507 "orientation": "hor", 508 "pos": [ 509 290, 510 490 511 ], 512 "width": 12, 513 "buttons": { 514 "values": [ 515 "non-binary", 516 "male", 517 "female" 518 ], 519 "label": { 520 "value": "dummy", 521 "width": 50, 522 "gap": 10, 523 "pos": "left" 524 } 525 }, 526 "label": { 527 "value": "Gender", 528 "width": 60, 529 "gap": 5, 530 "align": "left", 531 "pos": "right", 532 "font": { 533 "name": "$myCourierBold" 534 } 535 } 536 }, 537 { 538 "hide": false, 539 "id": "lrlsex", 540 "tip": "Sex", 541 "orientation": "hor", 542 "pos": [ 543 290, 544 470 545 ], 546 "width": 12, 547 "buttons": { 548 "values": [ 549 "non-binary", 550 "female", 551 "male" 552 ], 553 "label": { 554 "value": "dummy", 555 "width": 50, 556 "gap": 10, 557 "pos": "left" 558 } 559 }, 560 "label": { 561 "value": "Sex", 562 "width": 60, 563 "gap": 5, 564 "align": "left", 565 "pos": "right", 566 "font": { 567 "name": "$myCourierBold" 568 } 569 } 570 }, 571 { 572 "hide": false, 573 "id": "lrrgender", 574 "tip": "Gender", 575 "orientation": "hor", 576 "pos": [ 577 290, 578 430 579 ], 580 "width": 12, 581 "buttons": { 582 "values": [ 583 "non-binary", 584 "male", 585 "female" 586 ], 587 "label": { 588 "value": "dummy", 589 "width": 50, 590 "gap": 10, 591 "pos": "left" 592 } 593 }, 594 "label": { 595 "value": "Gender", 596 "width": 60, 597 "gap": 5, 598 "align": "right", 599 "pos": "right", 600 "font": { 601 "name": "$myCourierBold" 602 } 603 } 604 }, 605 { 606 "hide": false, 607 "id": "lrrsex", 608 "tip": "Sex", 609 "orientation": "hor", 610 "pos": [ 611 290, 612 410 613 ], 614 "width": 12, 615 "buttons": { 616 "values": [ 617 "non-binary", 618 "female", 619 "male" 620 ], 621 "label": { 622 "value": "dummy", 623 "width": 50, 624 "gap": 10, 625 "pos": "left" 626 } 627 }, 628 "label": { 629 "value": "Sex", 630 "width": 60, 631 "gap": 5, 632 "align": "right", 633 "pos": "right", 634 "font": { 635 "name": "$myCourierBold" 636 } 637 } 638 }, 639 { 640 "hide": false, 641 "id": "tllgender", 642 "tip": "Gender", 643 "orientation": "hor", 644 "pos": [ 645 40, 646 310 647 ], 648 "width": 12, 649 "buttons": { 650 "values": [ 651 "female", 652 "male", 653 "non-binary" 654 ], 655 "label": { 656 "value": "dummy", 657 "width": 50, 658 "gap": 10, 659 "pos": "right" 660 } 661 }, 662 "label": { 663 "value": "Gender:", 664 "width": 60, 665 "gap": 5, 666 "align": "left", 667 "pos": "top", 668 "font": { 669 "name": "$myCourierBold" 670 } 671 } 672 }, 673 { 674 "hide": false, 675 "id": "tlcgender", 676 "tip": "Gender", 677 "orientation": "hor", 678 "pos": [ 679 40, 680 260 681 ], 682 "width": 12, 683 "buttons": { 684 "values": [ 685 "female", 686 "male", 687 "non-binary" 688 ], 689 "label": { 690 "value": "dummy", 691 "width": 50, 692 "gap": 10, 693 "pos": "right" 694 } 695 }, 696 "label": { 697 "value": "Gender:", 698 "width": 60, 699 "gap": 5, 700 "align": "center", 701 "pos": "top", 702 "font": { 703 "name": "$myCourierBold" 704 } 705 } 706 }, 707 { 708 "hide": false, 709 "id": "tlrgender", 710 "tip": "Gender", 711 "orientation": "hor", 712 "pos": [ 713 40, 714 210 715 ], 716 "width": 12, 717 "buttons": { 718 "values": [ 719 "female", 720 "male", 721 "non-binary" 722 ], 723 "label": { 724 "value": "dummy", 725 "width": 50, 726 "gap": 10, 727 "pos": "right" 728 } 729 }, 730 "label": { 731 "value": "Gender:", 732 "width": 60, 733 "gap": 5, 734 "align": "right", 735 "pos": "top", 736 "font": { 737 "name": "$myCourierBold" 738 } 739 } 740 }, 741 { 742 "hide": false, 743 "id": "trlgender", 744 "tip": "Gender", 745 "orientation": "hor", 746 "pos": [ 747 330, 748 310 749 ], 750 "width": 12, 751 "buttons": { 752 "values": [ 753 "non-binary", 754 "male", 755 "female" 756 ], 757 "label": { 758 "value": "dummy", 759 "width": 50, 760 "gap": 10, 761 "pos": "left" 762 } 763 }, 764 "label": { 765 "value": "Gender:", 766 "width": 60, 767 "gap": 5, 768 "align": "left", 769 "pos": "top", 770 "font": { 771 "name": "$myCourierBold" 772 } 773 } 774 }, 775 { 776 "hide": false, 777 "id": "trcgender", 778 "tip": "Gender", 779 "orientation": "hor", 780 "pos": [ 781 330, 782 260 783 ], 784 "width": 12, 785 "buttons": { 786 "values": [ 787 "non-binary", 788 "male", 789 "female" 790 ], 791 "label": { 792 "value": "dummy", 793 "width": 50, 794 "gap": 10, 795 "pos": "left" 796 } 797 }, 798 "label": { 799 "value": "Gender:", 800 "width": 60, 801 "gap": 5, 802 "align": "center", 803 "pos": "top", 804 "font": { 805 "name": "$myCourierBold" 806 } 807 } 808 }, 809 { 810 "hide": false, 811 "id": "trrgender", 812 "tip": "Gender", 813 "orientation": "hor", 814 "pos": [ 815 330, 816 210 817 ], 818 "width": 12, 819 "buttons": { 820 "values": [ 821 "non-binary", 822 "male", 823 "female" 824 ], 825 "label": { 826 "value": "dummy", 827 "width": 50, 828 "gap": 10, 829 "pos": "left" 830 } 831 }, 832 "label": { 833 "value": "Gender:", 834 "width": 60, 835 "gap": 5, 836 "align": "right", 837 "pos": "top", 838 "font": { 839 "name": "$myCourierBold" 840 } 841 } 842 }, 843 { 844 "hide": false, 845 "id": "bllgender", 846 "tip": "Gender", 847 "orientation": "hor", 848 "pos": [ 849 40, 850 140 851 ], 852 "width": 12, 853 "buttons": { 854 "values": [ 855 "female", 856 "male", 857 "non-binary" 858 ], 859 "label": { 860 "value": "dummy", 861 "width": 50, 862 "gap": 10, 863 "pos": "right" 864 } 865 }, 866 "label": { 867 "value": "Gender", 868 "width": 60, 869 "gap": 5, 870 "align": "left", 871 "pos": "bottom", 872 "font": { 873 "name": "$myCourierBold" 874 } 875 } 876 }, 877 { 878 "hide": false, 879 "id": "blcgender", 880 "tip": "Gender", 881 "orientation": "hor", 882 "pos": [ 883 40, 884 90 885 ], 886 "width": 12, 887 "buttons": { 888 "values": [ 889 "female", 890 "male", 891 "non-binary" 892 ], 893 "label": { 894 "value": "dummy", 895 "width": 50, 896 "gap": 10, 897 "pos": "right" 898 } 899 }, 900 "label": { 901 "value": "Gender", 902 "width": 60, 903 "gap": 5, 904 "align": "center", 905 "pos": "bottom", 906 "font": { 907 "name": "$myCourierBold" 908 } 909 } 910 }, 911 { 912 "hide": false, 913 "id": "blrgender", 914 "tip": "Gender", 915 "orientation": "hor", 916 "pos": [ 917 40, 918 40 919 ], 920 "width": 12, 921 "buttons": { 922 "values": [ 923 "female", 924 "male", 925 "non-binary" 926 ], 927 "label": { 928 "value": "dummy", 929 "width": 50, 930 "gap": 10, 931 "pos": "right" 932 } 933 }, 934 "label": { 935 "value": "Gender", 936 "width": 60, 937 "gap": 5, 938 "align": "right", 939 "pos": "bottom", 940 "font": { 941 "name": "$myCourierBold" 942 } 943 } 944 }, 945 { 946 "hide": false, 947 "id": "brlgender", 948 "tip": "Gender", 949 "orientation": "hor", 950 "pos": [ 951 330, 952 140 953 ], 954 "width": 12, 955 "buttons": { 956 "values": [ 957 "non-binary", 958 "male", 959 "female" 960 ], 961 "label": { 962 "value": "dummy", 963 "width": 50, 964 "gap": 10, 965 "pos": "left" 966 } 967 }, 968 "label": { 969 "value": "Gender", 970 "width": 60, 971 "gap": 5, 972 "align": "left", 973 "pos": "bottom", 974 "font": { 975 "name": "$myCourierBold" 976 } 977 } 978 }, 979 { 980 "hide": false, 981 "id": "brcgender", 982 "tip": "Gender", 983 "orientation": "hor", 984 "pos": [ 985 330, 986 90 987 ], 988 "width": 12, 989 "buttons": { 990 "values": [ 991 "non-binary", 992 "male", 993 "female" 994 ], 995 "label": { 996 "value": "dummy", 997 "width": 50, 998 "gap": 10, 999 "pos": "left" 1000 } 1001 }, 1002 "label": { 1003 "value": "Gender", 1004 "width": 60, 1005 "gap": 5, 1006 "align": "center", 1007 "pos": "bottom", 1008 "font": { 1009 "name": "$myCourierBold" 1010 } 1011 } 1012 }, 1013 { 1014 "hide": false, 1015 "id": "brrgender", 1016 "tip": "Gender", 1017 "orientation": "hor", 1018 "pos": [ 1019 330, 1020 40 1021 ], 1022 "width": 12, 1023 "buttons": { 1024 "values": [ 1025 "non-binary", 1026 "male", 1027 "female" 1028 ], 1029 "label": { 1030 "value": "dummy", 1031 "width": 50, 1032 "gap": 10, 1033 "pos": "left" 1034 } 1035 }, 1036 "label": { 1037 "value": "Gender", 1038 "width": 60, 1039 "gap": 5, 1040 "align": "right", 1041 "pos": "bottom", 1042 "font": { 1043 "name": "$myCourierBold" 1044 } 1045 } 1046 } 1047 ], 1048 "text": [ 1049 { 1050 "value": "Horizontal radiobuttons with left label:", 1051 "anchor": "topleft", 1052 "font": { 1053 "name": "$myCourierBold" 1054 } 1055 }, 1056 { 1057 "value": "Horizontal radiobuttons with right label:", 1058 "pos": [ 1059 0, 1060 540 1061 ], 1062 "font": { 1063 "name": "$myCourierBold" 1064 } 1065 }, 1066 { 1067 "value": "Horizontal radiobuttons with top label:", 1068 "anchor": "left", 1069 "font": { 1070 "name": "$myCourierBold" 1071 } 1072 }, 1073 { 1074 "value": "Horizontal radiobuttons with bottom label:", 1075 "pos": [ 1076 0, 1077 170 1078 ], 1079 "font": { 1080 "name": "$myCourierBold" 1081 } 1082 } 1083 ] 1084 } 1085 } 1086 } 1087 }