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