github.com/pdfcpu/pdfcpu@v0.11.1/pkg/testdata/json/form/listbox.json (about) 1 { 2 "paper": "A4P", 3 "crop": "10", 4 "origin": "LowerLeft", 5 "contentBox": true, 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": "Listboxes", 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/listbox.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 "pages": { 84 "1": { 85 "bgCol": "LightGray", 86 "content": { 87 "listbox": [ 88 { 89 "hide": false, 90 "id": "llgender", 91 "tip": "Gender", 92 "value": "male", 93 "options": [ 94 "female", 95 "male", 96 "non binary" 97 ], 98 "multi": false, 99 "pos": [ 100 150, 101 638 102 ], 103 "width": 100, 104 "height": 42, 105 "font": { 106 "name": "$myCourier", 107 "size": 9 108 }, 109 "border": { 110 "width":1, 111 "col": "Black" 112 }, 113 "label": { 114 "value": "Gender:", 115 "width": 60, 116 "gap": 10, 117 "align": "left", 118 "pos": "left" 119 } 120 }, 121 { 122 "hide": false, 123 "id": "llsex multiselect", 124 "tip": "Multiselect", 125 "values": [ 126 "diverse", 127 "undefined" 128 ], 129 "options": [ 130 "female", 131 "male", 132 "diverse", 133 "inter", 134 "undefined" 135 ], 136 "multi": true, 137 "pos": [ 138 150, 139 545 140 ], 141 "width": 100, 142 "height": 85, 143 "bgCol": "#D0FFD0", 144 "border": { 145 "width": 5, 146 "col": "#C00000" 147 }, 148 "label": { 149 "value": "Multiselect:", 150 "width": 60, 151 "gap": 10, 152 "align": "left", 153 "pos": "left" 154 } 155 }, 156 { 157 "hide": false, 158 "id": "lrgender", 159 "tip": "Gender", 160 "value": "non binary", 161 "options": [ 162 "female", 163 "male", 164 "non binary" 165 ], 166 "multi": false, 167 "pos": [ 168 370, 169 638 170 ], 171 "width": 100, 172 "height": 42, 173 "border": { 174 "width": 1, 175 "col": "Black" 176 }, 177 "label": { 178 "value": "Gender:", 179 "width": 60, 180 "gap": 10, 181 "align": "right", 182 "pos": "left" 183 } 184 }, 185 { 186 "hide": false, 187 "id": "lrsex multiselect", 188 "tip": "Multiselect", 189 "options": [ 190 "female", 191 "male", 192 "diverse", 193 "inter", 194 "undefined", 195 "no entry" 196 ], 197 "multi": true, 198 "pos": [ 199 370, 200 588 201 ], 202 "width": 100, 203 "height": 42, 204 "border": { 205 "width": 1, 206 "col": "Black" 207 }, 208 "label": { 209 "value": "Multiselect:", 210 "width": 60, 211 "gap": 10, 212 "align": "right", 213 "pos": "left" 214 } 215 }, 216 { 217 "hide": false, 218 "tip": "Gender", 219 "id": "rlgender", 220 "options": [ 221 "female", 222 "male", 223 "non binary" 224 ], 225 "pos": [ 226 150, 227 458 228 ], 229 "width": 100, 230 "height": 42, 231 "border": { 232 "width": 1, 233 "col": "Black" 234 }, 235 "label": { 236 "value": "Gender", 237 "width": 60, 238 "gap": 10, 239 "align": "left", 240 "pos": "right" 241 } 242 }, 243 { 244 "hide": false, 245 "tip": "Sex", 246 "id": "rlsex", 247 "value": "", 248 "options": [ 249 "female", 250 "male", 251 "diverse", 252 "inter", 253 "undefined", 254 "no entry" 255 ], 256 "pos": [ 257 150, 258 398 259 ], 260 "width": 100, 261 "height": 42, 262 "border": { 263 "width": 1, 264 "col": "Black" 265 }, 266 "label": { 267 "value": "Sex", 268 "width": 60, 269 "gap": 10, 270 "align": "left", 271 "pos": "right" 272 } 273 }, 274 { 275 "hide": false, 276 "tip": "Gender", 277 "id": "rrgender", 278 "options": [ 279 "female", 280 "male", 281 "non binary" 282 ], 283 "pos": [ 284 370, 285 458 286 ], 287 "width": 100, 288 "height": 42, 289 "border": { 290 "width": 1, 291 "col": "Black" 292 }, 293 "label": { 294 "value": "Gender", 295 "width": 60, 296 "gap": 10, 297 "align": "right", 298 "pos": "right" 299 } 300 }, 301 { 302 "hide": false, 303 "tip": "Sex", 304 "id": "rrsex", 305 "options": [ 306 "female", 307 "male", 308 "diverse", 309 "inter", 310 "undefined", 311 "no entry" 312 ], 313 "pos": [ 314 370, 315 398 316 ], 317 "width": 100, 318 "height": 42, 319 "border": { 320 "width": 1, 321 "col": "Black" 322 }, 323 "label": { 324 "value": "Sex", 325 "width": 60, 326 "gap": 10, 327 "align": "right", 328 "pos": "right" 329 } 330 }, 331 { 332 "hide": false, 333 "id": "tlgender", 334 "tip": "Gender", 335 "options": [ 336 "female", 337 "male", 338 "non binary" 339 ], 340 "pos": [ 341 70, 342 254 343 ], 344 "width": 100, 345 "height": 46, 346 "border": { 347 "width": 1, 348 "col": "Gray" 349 }, 350 "label": { 351 "value": "Gender", 352 "width": 60, 353 "gap": 5, 354 "align": "left", 355 "pos": "top" 356 } 357 }, 358 { 359 "hide": false, 360 "id": "tcgender", 361 "tip": "Gender", 362 "options": [ 363 "female", 364 "male", 365 "non binary" 366 ], 367 "pos": [ 368 220, 369 254 370 ], 371 "width": 100, 372 "height": 46, 373 "border": { 374 "width": 1, 375 "col": "Gray" 376 }, 377 "label": { 378 "value": "Gender", 379 "width": 60, 380 "gap": 5, 381 "align": "center", 382 "pos": "top" 383 } 384 }, 385 { 386 "hide": false, 387 "id": "trgender", 388 "tip": "Gender", 389 "options": [ 390 "female", 391 "male", 392 "non binary" 393 ], 394 "pos": [ 395 370, 396 254 397 ], 398 "width": 100, 399 "height": 46, 400 "border": { 401 "width": 2, 402 "col": "Black" 403 }, 404 "label": { 405 "value": "Gender", 406 "width": 60, 407 "gap": 5, 408 "align": "right", 409 "pos": "top" 410 } 411 }, 412 { 413 "hide": false, 414 "id": "blgender", 415 "tip": "Gender", 416 "options": [ 417 "female", 418 "male", 419 "non binary" 420 ], 421 "pos": [ 422 70, 423 84 424 ], 425 "width": 100, 426 "height": 46, 427 "border": { 428 "width": 1, 429 "col": "Gray" 430 }, 431 "label": { 432 "value": "Gender", 433 "width": 60, 434 "gap": 5, 435 "align": "left", 436 "pos": "bottom" 437 } 438 }, 439 { 440 "hide": false, 441 "id": "bcgender", 442 "tip": "Gender", 443 "value": "male", 444 "options": [ 445 "female", 446 "male", 447 "non binary" 448 ], 449 "pos": [ 450 220, 451 84 452 ], 453 "width": 100, 454 "height": 46, 455 "label": { 456 "value": "Gender", 457 "width": 60, 458 "gap": 5, 459 "align": "center", 460 "pos": "bottom" 461 } 462 }, 463 { 464 "hide": false, 465 "id": "brgender", 466 "tip": "Gender", 467 "options": [ 468 "female", 469 "male", 470 "non binary" 471 ], 472 "pos": [ 473 370, 474 84 475 ], 476 "width": 100, 477 "height": 46, 478 "border": { 479 "width": 1, 480 "col": "Gray" 481 }, 482 "label": { 483 "value": "Gender", 484 "width": 60, 485 "gap": 5, 486 "align": "right", 487 "pos": "bottom" 488 } 489 } 490 ], 491 "text": [ 492 { 493 "value": "Listbox with left label:", 494 "pos": [ 495 10, 496 690 497 ], 498 "font": { 499 "name": "$myCourier" 500 } 501 }, 502 { 503 "value": "Listbox with right label:", 504 "pos": [ 505 10, 506 520 507 ], 508 "font": { 509 "name": "$myCourier" 510 } 511 }, 512 { 513 "value": "Listbox with top label:", 514 "pos": [ 515 10, 516 350 517 ], 518 "font": { 519 "name": "$myCourier" 520 } 521 }, 522 { 523 "value": "Listbox with bottom label:", 524 "pos": [ 525 10, 526 170 527 ], 528 "font": { 529 "name": "$myCourier" 530 } 531 } 532 ] 533 } 534 } 535 } 536 }