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