github.com/pdfcpu/pdfcpu@v0.11.1/pkg/testdata/json/form/demo/slovak.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 "images": { 20 "logo1": { 21 "src": "$logo1", 22 "url": "https://pdfcpu.io", 23 "margin": { 24 "width": 5 25 } 26 }, 27 "logo2": { 28 "src": "$logo2", 29 "url": "https://github.com/pdfcpu/pdfcpu", 30 "margin": { 31 "width": 5 32 } 33 } 34 }, 35 "fonts": { 36 "myCourierBold": { 37 "name": "Courier-Bold", 38 "size": 12 39 }, 40 "input": { 41 "name": "Helvetica", 42 "size": 12 43 }, 44 "label": { 45 "name": "$input" 46 } 47 }, 48 "margin": { 49 "width": 10 50 }, 51 "header": { 52 "font": { 53 "name": "$myCourierBold", 54 "size": 24, 55 "col": "#C00000" 56 }, 57 "left": "$logo1", 58 "center": "Demo formulár", 59 "right": "$logo2", 60 "height": 40, 61 "dx": 5, 62 "dy": 5, 63 "border": false 64 }, 65 "footer": { 66 "font": { 67 "name": "Courier", 68 "size": 9 69 }, 70 "left": "pdfcpu: %v\nCreated: %t", 71 "center": "Optimized for A.Reader\nPage %p of %P", 72 "right": "Source:\ntestdata/json/form/demo/slovak.json", 73 "height": 30, 74 "dx": 5, 75 "dy": 5, 76 "border": false 77 }, 78 "pages": { 79 "1": { 80 "content": { 81 "textfield": [ 82 { 83 "hide": false, 84 "debug": false, 85 "id": "firstName1", 86 "tip": "Krstné meno", 87 "tab": 1, 88 "//default": "default name", 89 "pos": [ 90 140, 91 665 92 ], 93 "width": 190, 94 "align": "left", 95 "border": { 96 "width":1, 97 "col": "Gray" 98 }, 99 "label": { 100 "value": "Krstné meno:", 101 "width": 100, 102 "gap": 10, 103 "align": "left", 104 "pos": "left" 105 } 106 }, 107 { 108 "hide": false, 109 "id": "lastName1", 110 "tip": "Priezvisko", 111 "tab": 2, 112 "pos": [ 113 140, 114 645 115 ], 116 "width": 190, 117 "align": "left", 118 "border": { 119 "width":1, 120 "col": "Gray" 121 }, 122 "label": { 123 "value": "Priezvisko:", 124 "width": 100, 125 "gap": 10, 126 "align": "left", 127 "pos": "left" 128 } 129 }, 130 { 131 "hide": false, 132 "id": "note1", 133 "tip": "Dôvod", 134 "tab": 12, 135 "multiline": true, 136 "value": "Toto je vzorový text.\nToto je ďalší riadok.", 137 "pos": [ 138 140, 139 132 140 ], 141 "width": 190, 142 "height":70, 143 "align": "left", 144 "border": { 145 "width":1, 146 "col": "Gray" 147 } 148 } 149 ], 150 151 "datefield": [ 152 { 153 "hide": false, 154 "id": "dob1", 155 "tab": 3, 156 "format": "dd.mm.yyyy", 157 "//default": "01.01.2000", 158 "//value": "31.12.1999", 159 "pos": [ 160 140, 161 625 162 ], 163 "width": 70, 164 "border": { 165 "width":1, 166 "col": "Gray" 167 }, 168 "label": { 169 "value": "Dátum narodenia:", 170 "width": 100, 171 "gap": 10, 172 "align": "left", 173 "pos": "left" 174 } 175 } 176 ], 177 178 "radiobuttongroup": [ 179 { 180 "hide": false, 181 "id": "gender1", 182 "tip": "Rod", 183 "tab": 4, 184 "orientation": "hor", 185 "//default": "žena", 186 "//value": "Muž", 187 "pos": [ 188 140, 189 605 190 ], 191 "width": 12, 192 "buttons": { 193 "values": [ 194 "žena", 195 "muž", 196 "nebinárne" 197 ], 198 "label": { 199 "value": "dummy", 200 "width": 48, 201 "gap": 10, 202 "pos": "right" 203 } 204 }, 205 "label": { 206 "value": "Rod:", 207 "width": 100, 208 "gap": 10, 209 "align": "left", 210 "pos": "left" 211 } 212 } 213 ], 214 215 "checkbox": [ 216 { 217 "hide": false, 218 "id": "cb11", 219 "tip": "Google vyhľadávanie", 220 "tab": 7, 221 "//default": true, 222 "value": false, 223 "pos": [ 224 30, 225 270 226 ], 227 "width": 12, 228 "label": { 229 "value": "Google vyhľadávanie", 230 "width": 80, 231 "gap": 5, 232 "align": "left", 233 "pos": "right" 234 } 235 }, 236 { 237 "hide": false, 238 "id": "cb12", 239 "tip": "Vyhľadávanie Github", 240 "tab": 8, 241 "value": false, 242 "pos": [ 243 30, 244 250 245 ], 246 "width": 12, 247 "label": { 248 "value": "Vyhľadávanie Github", 249 "width": 80, 250 "gap": 5, 251 "align": "left", 252 "pos": "right" 253 } 254 }, 255 { 256 "hide": false, 257 "id": "cb13", 258 "tip": "Golang Weekly", 259 "tab": 9, 260 "value": false, 261 "pos": [ 262 30, 263 230 264 ], 265 "width": 12, 266 "label": { 267 "value": "Golang Weekly", 268 "width": 80, 269 "gap": 5, 270 "align": "left", 271 "pos": "right" 272 } 273 }, 274 { 275 "hide": false, 276 "id": "cb14", 277 "tip": "Kolega Gopher", 278 "tab": 10, 279 "value": false, 280 "pos": [ 281 30, 282 210 283 ], 284 "width": 12, 285 "label": { 286 "value": "Kolega Gopher", 287 "width": 80, 288 "gap": 5, 289 "align": "left", 290 "pos": "right" 291 } 292 }, 293 { 294 "hide": false, 295 "id": "cb15", 296 "tip": "Iné", 297 "tab": 11, 298 "value": false, 299 "pos": [ 300 30, 301 190 302 ], 303 "width": 12, 304 "label": { 305 "value": "Iné:", 306 "width": 80, 307 "gap": 5, 308 "align": "left", 309 "pos": "right" 310 } 311 } 312 ], 313 314 "listbox": [ 315 { 316 "hide": false, 317 "id": "city11", 318 "tip": "Obľúbené mesto", 319 "tab": 5, 320 "options": [ 321 "San Francisco", 322 "São Paulo", 323 "Viedeň" 324 ], 325 "multi": true, 326 "//defaults": [ 327 "Viedeň", 328 "São Paulo" 329 ], 330 "//values": [ 331 "San Francisco", 332 "Viedeň" 333 ], 334 "pos": [ 335 140, 336 530 337 ], 338 "width": 190, 339 "height": 42, 340 "border": { 341 "width":1, 342 "col": "Gray" 343 }, 344 "label": { 345 "value": "Obľúbené mesto:", 346 "width": 100, 347 "gap": 10, 348 "align": "left", 349 "pos": "left" 350 } 351 } 352 ], 353 354 "combobox": [ 355 { 356 "hide": false, 357 "id": "city12", 358 "tip": "Mesto", 359 "tab": 6, 360 "options": [ 361 "Banská Bystrica", 362 "Bratislava", 363 "Poprad" 364 ], 365 "edit": false, 366 "//default": "Poprad", 367 "//value": "Bratislava", 368 "pos": [ 369 140, 370 500 371 ], 372 "width": 190, 373 "border": { 374 "width":1, 375 "col": "Gray" 376 }, 377 "label": { 378 "value": "Mesto:", 379 "width": 100, 380 "gap": 10, 381 "align": "left", 382 "pos": "left" 383 } 384 } 385 ], 386 387 "text": [ 388 { 389 "hide": false, 390 "value": "1) Povedzte nám o sebe:", 391 "pos": [ 392 10, 393 690 394 ], 395 "font": { 396 "name": "$label" 397 } 398 }, 399 { 400 "hide": false, 401 "value": "2) Ako ste sa dozvedeli o pdfcpu:", 402 "pos": [ 403 10, 404 290 405 ], 406 "font": { 407 "name": "$label" 408 } 409 } 410 ] 411 } 412 }, 413 "2": { 414 "content": { 415 "textfield": [ 416 { 417 "hide": false, 418 "id": "firstName2", 419 "tip": "Krstné meno", 420 "tab": 1, 421 "value": "Jackie", 422 "pos": [ 423 140, 424 665 425 ], 426 "width": 190, 427 "align": "left", 428 "border": { 429 "width":1, 430 "col": "Gray" 431 }, 432 "label": { 433 "value": "Krstné meno:", 434 "width": 100, 435 "gap": 10, 436 "align": "left", 437 "pos": "left" 438 } 439 }, 440 { 441 "hide": false, 442 "id": "lastName2", 443 "tip": "Priezvisko", 444 "tab": 2, 445 "value": "Doe", 446 "pos": [ 447 140, 448 645 449 ], 450 "width": 190, 451 "align": "left", 452 "border": { 453 "width":1, 454 "col": "Gray" 455 }, 456 "label": { 457 "value": "Priezvisko:", 458 "width": 100, 459 "gap": 10, 460 "align": "left", 461 "pos": "left" 462 } 463 }, 464 { 465 "hide": false, 466 "id": "note2", 467 "tip": "Dôvod", 468 "tab": 12, 469 "multiline": true, 470 "value": "Toto je vzorový text.\nToto je ďalší riadok..", 471 "pos": [ 472 140, 473 132 474 ], 475 "width": 190, 476 "height":70, 477 "align": "left", 478 "border": { 479 "width":1, 480 "col": "Gray" 481 } 482 } 483 ], 484 485 "datefield": [ 486 { 487 "hide": false, 488 "id": "dob2", 489 "tab": 3, 490 "value": "31.12.1999", 491 "pos": [ 492 140, 493 625 494 ], 495 "width": 70, 496 "border": { 497 "width":1, 498 "col": "Gray" 499 }, 500 "label": { 501 "value": "Dátum narodenia:", 502 "width": 100, 503 "gap": 10, 504 "align": "left", 505 "pos": "left" 506 } 507 } 508 ], 509 510 "radiobuttongroup": [ 511 { 512 "hide": false, 513 "id": "gender2", 514 "tip": "Rod", 515 "tab": 4, 516 "value": "nebinárne", 517 "orientation": "hor", 518 "pos": [ 519 140, 520 605 521 ], 522 "width": 12, 523 "buttons": { 524 "values": [ 525 "žena", 526 "muž", 527 "nebinárne" 528 ], 529 "label": { 530 "value": "dummy", 531 "width": 48, 532 "gap": 10, 533 "pos": "right" 534 } 535 }, 536 "label": { 537 "value": "Rod:", 538 "width": 100, 539 "gap": 10, 540 "align": "left", 541 "pos": "left" 542 } 543 } 544 ], 545 546 "checkbox": [ 547 { 548 "hide": false, 549 "id": "cb21", 550 "tip": "Google vyhľadávanie", 551 "tab": 7, 552 "value": true, 553 "pos": [ 554 30, 555 270 556 ], 557 "width": 12, 558 "label": { 559 "value": "Google vyhľadávanie", 560 "width": 80, 561 "gap": 5, 562 "align": "left", 563 "pos": "right" 564 } 565 }, 566 { 567 "hide": false, 568 "id": "cb22", 569 "tip": "Vyhľadávanie Github", 570 "tab": 8, 571 "value": false, 572 "pos": [ 573 30, 574 250 575 ], 576 "width": 12, 577 "label": { 578 "value": "Vyhľadávanie Github", 579 "width": 80, 580 "gap": 5, 581 "align": "left", 582 "pos": "right" 583 } 584 }, 585 { 586 "hide": false, 587 "id": "cb23", 588 "tip": "Golang Weekly", 589 "tab": 9, 590 "value": false, 591 "pos": [ 592 30, 593 230 594 ], 595 "width": 12, 596 "label": { 597 "value": "Golang Weekly", 598 "width": 80, 599 "gap": 5, 600 "align": "left", 601 "pos": "right" 602 } 603 }, 604 { 605 "hide": false, 606 "id": "cb24", 607 "tip": "Kolega Gopher", 608 "tab": 10, 609 "value": false, 610 "pos": [ 611 30, 612 210 613 ], 614 "width": 12, 615 "label": { 616 "value": "Kolega Gopher", 617 "width": 80, 618 "gap": 5, 619 "align": "left", 620 "pos": "right" 621 } 622 }, 623 { 624 "hide": false, 625 "id": "cb25", 626 "tip": "Iné", 627 "tab": 11, 628 "value": false, 629 "pos": [ 630 30, 631 190 632 ], 633 "width": 12, 634 "label": { 635 "value": "Iné:", 636 "width": 80, 637 "gap": 5, 638 "align": "left", 639 "pos": "right" 640 } 641 } 642 ], 643 644 "listbox": [ 645 { 646 "hide": false, 647 "id": "city21", 648 "tip": "Obľúbené mesto", 649 "tab": 5, 650 "options": [ 651 "San Francisco", 652 "São Paulo", 653 "Viedeň" 654 ], 655 "multi": false, 656 "value": "San Francisco", 657 "pos": [ 658 140, 659 530 660 ], 661 "width": 190, 662 "height": 42, 663 "border": { 664 "width":1, 665 "col": "Gray" 666 }, 667 "label": { 668 "value": "Obľúbené mesto:", 669 "width": 100, 670 "gap": 10, 671 "align": "left", 672 "pos": "left" 673 } 674 } 675 ], 676 677 "combobox": [ 678 { 679 "hide": false, 680 "id": "city22", 681 "tip": "Mesto", 682 "tab": 6, 683 "options": [ 684 "Banská Bystrica", 685 "Bratislava", 686 "Poprad" 687 ], 688 "edit": false, 689 "value": "Bratislava", 690 "pos": [ 691 140, 692 500 693 ], 694 "width": 190, 695 "border": { 696 "width":1, 697 "col": "Gray" 698 }, 699 "label": { 700 "value": "Mesto:", 701 "width": 100, 702 "gap": 10, 703 "align": "left", 704 "pos": "left" 705 } 706 } 707 ], 708 709 "text": [ 710 { 711 "hide": false, 712 "value": "1) Povedzte nám o sebe:", 713 "pos": [ 714 10, 715 690 716 ], 717 "font": { 718 "name": "$label" 719 } 720 }, 721 { 722 "hide": false, 723 "value": "2) Ako ste sa dozvedeli o pdfcpu:", 724 "pos": [ 725 10, 726 290 727 ], 728 "font": { 729 "name": "$label" 730 } 731 } 732 ] 733 } 734 } 735 } 736 }