github.com/pdfcpu/pdfcpu@v0.11.1/pkg/testdata/json/form/listboxGroup.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 }, 32 "label": { 33 "name": "Helvetica", 34 "size": 12 35 } 36 }, 37 "margin": { 38 "width": 10 39 }, 40 "header": { 41 "font": { 42 "name": "$myCourierBold", 43 "size": 24, 44 "col": "#C00000" 45 }, 46 "left": "$logo1", 47 "center": "Listbox Groups", 48 "right": "$logo2", 49 "height": 40, 50 "dx": 5, 51 "dy": 5, 52 "border": false 53 }, 54 "footer": { 55 "font": { 56 "name": "Courier", 57 "size": 9 58 }, 59 "left": "pdfcpu: %v\nCreated: %t", 60 "center": "Optimized for A.Reader\nPage %p of %P", 61 "right": "Source:\ntestdata/json/form/listboxGroup.json", 62 "height": 30, 63 "dx": 5, 64 "dy": 5, 65 "border": false 66 }, 67 "images": { 68 "logo1": { 69 "src": "$logo1", 70 "url": "https://pdfcpu.io", 71 "margin": { 72 "width": 5 73 } 74 }, 75 "logo2": { 76 "src": "$logo2", 77 "url": "https://github.com/pdfcpu/pdfcpu", 78 "margin": { 79 "width": 5 80 } 81 } 82 }, 83 "fieldgroups": { 84 "lbg": { 85 "hide": false, 86 "bgCol": "White", 87 "padding": { 88 "width": 6 89 } 90 } 91 }, 92 "pages": { 93 "1": { 94 "bgCol": "LightGray", 95 "content": { 96 "fieldGroup": [ 97 { 98 "name": "$lbg", 99 "listbox": [ 100 { 101 "hide": false, 102 "id": "llgender", 103 "tip": "Gender", 104 "value": "male", 105 "options": [ 106 "female", 107 "male", 108 "non binary" 109 ], 110 "multi": false, 111 "pos": [ 112 150, 113 638 114 ], 115 "width": 100, 116 "height": 42, 117 "font": { 118 "name": "$myCourier", 119 "size": 9 120 }, 121 "border": { 122 "width":1, 123 "col": "Black" 124 }, 125 "label": { 126 "value": "Gender:", 127 "width": 60, 128 "gap": 10, 129 "align": "left", 130 "pos": "left" 131 } 132 }, 133 { 134 "hide": false, 135 "id": "llsex multiselect", 136 "tip": "Multiselect", 137 "values": [ 138 "diverse", 139 "undefined" 140 ], 141 "options": [ 142 "female", 143 "male", 144 "diverse", 145 "inter", 146 "undefined" 147 ], 148 "multi": true, 149 "pos": [ 150 150, 151 545 152 ], 153 "width": 100, 154 "height": 85, 155 "bgCol": "#D0FFD0", 156 "border": { 157 "width": 5, 158 "col": "#C00000" 159 }, 160 "label": { 161 "value": "Multiselect:", 162 "width": 60, 163 "gap": 10, 164 "align": "left", 165 "pos": "left" 166 } 167 } 168 ] 169 }, 170 { 171 "name": "$lbg", 172 "border": { 173 "width": 5, 174 "col": "Gray", 175 "style": "round" 176 }, 177 "listbox": [ 178 { 179 "hide": false, 180 "id": "lrgender", 181 "tip": "Gender", 182 "value": "non binary", 183 "options": [ 184 "female", 185 "male", 186 "non binary" 187 ], 188 "multi": false, 189 "pos": [ 190 370, 191 638 192 ], 193 "width": 100, 194 "height": 42, 195 "border": { 196 "width": 1, 197 "col": "Black" 198 }, 199 "label": { 200 "value": "Gender:", 201 "width": 60, 202 "gap": 10, 203 "align": "right", 204 "pos": "left" 205 } 206 }, 207 { 208 "hide": false, 209 "id": "lrsex multiselect", 210 "tip": "Multiselect", 211 "options": [ 212 "female", 213 "male", 214 "diverse", 215 "inter", 216 "undefined", 217 "no entry" 218 ], 219 "multi": true, 220 "pos": [ 221 370, 222 588 223 ], 224 "width": 100, 225 "height": 42, 226 "border": { 227 "width": 1, 228 "col": "Black" 229 }, 230 "label": { 231 "value": "Multiselect:", 232 "width": 60, 233 "gap": 10, 234 "align": "right", 235 "pos": "left" 236 } 237 } 238 ] 239 }, 240 { 241 "name": "$lbg", 242 "listbox": [ 243 { 244 "hide": false, 245 "id": "rlgender", 246 "tip": "Gender", 247 "options": [ 248 "female", 249 "male", 250 "non binary" 251 ], 252 "pos": [ 253 150, 254 458 255 ], 256 "width": 100, 257 "height": 42, 258 "border": { 259 "width": 1, 260 "col": "Black" 261 }, 262 "label": { 263 "value": "Gender", 264 "width": 60, 265 "gap": 10, 266 "align": "left", 267 "pos": "right" 268 } 269 }, 270 { 271 "hide": false, 272 "id": "rlsex", 273 "tip": "Sex", 274 "value": "", 275 "options": [ 276 "female", 277 "male", 278 "diverse", 279 "inter", 280 "undefined", 281 "no entry" 282 ], 283 "pos": [ 284 150, 285 398 286 ], 287 "width": 100, 288 "height": 42, 289 "border": { 290 "width": 1, 291 "col": "Black" 292 }, 293 "label": { 294 "value": "Sex", 295 "width": 60, 296 "gap": 10, 297 "align": "left", 298 "pos": "right" 299 } 300 } 301 ] 302 }, 303 { 304 "name": "$lbg", 305 "listbox": [ 306 { 307 "hide": false, 308 "id": "rrgender", 309 "tip": "Gender", 310 "options": [ 311 "female", 312 "male", 313 "non binary" 314 ], 315 "pos": [ 316 370, 317 458 318 ], 319 "width": 100, 320 "height": 42, 321 "border": { 322 "width": 1, 323 "col": "Black" 324 }, 325 "label": { 326 "value": "Gender", 327 "width": 60, 328 "gap": 10, 329 "align": "right", 330 "pos": "right" 331 } 332 }, 333 { 334 "hide": false, 335 "id": "rrsex", 336 "tip": "Sex", 337 "options": [ 338 "female", 339 "male", 340 "diverse", 341 "inter", 342 "undefined", 343 "no entry" 344 ], 345 "pos": [ 346 370, 347 398 348 ], 349 "width": 100, 350 "height": 42, 351 "border": { 352 "width": 1, 353 "col": "Black" 354 }, 355 "label": { 356 "value": "Sex", 357 "width": 60, 358 "gap": 10, 359 "align": "right", 360 "pos": "right" 361 } 362 } 363 ] 364 }, 365 { 366 "name": "$lbg", 367 "listbox": [ 368 { 369 "hide": false, 370 "id": "tlgender", 371 "tip": "Gender", 372 "options": [ 373 "female", 374 "male", 375 "non binary" 376 ], 377 "pos": [ 378 70, 379 254 380 ], 381 "width": 100, 382 "height": 46, 383 "border": { 384 "width": 1, 385 "col": "Gray" 386 }, 387 "label": { 388 "value": "Gender", 389 "width": 60, 390 "gap": 5, 391 "align": "left", 392 "pos": "top" 393 } 394 }, 395 { 396 "hide": false, 397 "id": "tcgender", 398 "tip": "Gender", 399 "options": [ 400 "female", 401 "male", 402 "non binary" 403 ], 404 "pos": [ 405 220, 406 254 407 ], 408 "width": 100, 409 "height": 46, 410 "border": { 411 "width": 1, 412 "col": "Gray" 413 }, 414 "label": { 415 "value": "Gender", 416 "width": 60, 417 "gap": 5, 418 "align": "center", 419 "pos": "top" 420 } 421 }, 422 { 423 "hide": false, 424 "id": "trgender", 425 "tip": "Gender", 426 "options": [ 427 "female", 428 "male", 429 "non binary" 430 ], 431 "pos": [ 432 370, 433 254 434 ], 435 "width": 100, 436 "height": 46, 437 "border": { 438 "width": 2, 439 "col": "Black" 440 }, 441 "label": { 442 "value": "Gender", 443 "width": 60, 444 "gap": 5, 445 "align": "right", 446 "pos": "top" 447 } 448 } 449 ] 450 }, 451 { 452 "name": "$lbg", 453 "listbox": [ 454 { 455 "hide": false, 456 "id": "blgender", 457 "tip": "Gender", 458 "options": [ 459 "female", 460 "male", 461 "non binary" 462 ], 463 "pos": [ 464 70, 465 84 466 ], 467 "width": 100, 468 "height": 46, 469 "border": { 470 "width": 1, 471 "col": "Gray" 472 }, 473 "label": { 474 "value": "Gender", 475 "width": 60, 476 "gap": 5, 477 "align": "left", 478 "pos": "bottom" 479 } 480 }, 481 { 482 "hide": false, 483 "id": "bcgender", 484 "tip": "Gender", 485 "value": "male", 486 "options": [ 487 "female", 488 "male", 489 "non binary" 490 ], 491 "pos": [ 492 220, 493 84 494 ], 495 "width": 100, 496 "height": 46, 497 "label": { 498 "value": "Gender", 499 "width": 60, 500 "gap": 5, 501 "align": "center", 502 "pos": "bottom" 503 } 504 }, 505 { 506 "hide": false, 507 "id": "brgender", 508 "tip": "Gender", 509 "options": [ 510 "female", 511 "male", 512 "non binary" 513 ], 514 "pos": [ 515 370, 516 84 517 ], 518 "width": 100, 519 "height": 46, 520 "border": { 521 "width": 1, 522 "col": "Gray" 523 }, 524 "label": { 525 "value": "Gender", 526 "width": 60, 527 "gap": 5, 528 "align": "right", 529 "pos": "bottom" 530 } 531 } 532 ] 533 } 534 ], 535 "text": [ 536 { 537 "value": "Listbox with left label:", 538 "pos": [ 539 10, 540 690 541 ], 542 "font": { 543 "name": "$myCourier" 544 } 545 }, 546 { 547 "value": "Listbox with right label:", 548 "pos": [ 549 10, 550 520 551 ], 552 "font": { 553 "name": "$myCourier" 554 } 555 }, 556 { 557 "value": "Listbox with top label:", 558 "pos": [ 559 10, 560 350 561 ], 562 "font": { 563 "name": "$myCourier" 564 } 565 }, 566 { 567 "value": "Listbox with bottom label:", 568 "pos": [ 569 10, 570 170 571 ], 572 "font": { 573 "name": "$myCourier" 574 } 575 } 576 ] 577 } 578 } 579 } 580 }