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