github.com/pdfcpu/pdfcpu@v0.11.1/pkg/testdata/json/create/images.json (about) 1 { 2 "paper": "A4L", 3 "crop": "10", 4 "origin": "LowerLeft", 5 "contentBox": true, 6 "debug": false, 7 "guides": true, 8 "colors": { 9 "DarkOrange": "#FF8C00", 10 "Beige": "#F5F5DC" 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 }, 25 "margin": { 26 "width": 10 27 }, 28 "borders": { 29 "myBorder": { 30 "width": 5, 31 "col": "#FF0000", 32 "style": "round" 33 } 34 }, 35 "padding": { 36 "width": 10 37 }, 38 "header": { 39 "font": { 40 "name": "Courier-Bold", 41 "size": 24, 42 "col": "#FF0000" 43 }, 44 "bgCol": "#FFFFFF", 45 "left": "$logo1", 46 "center": "Imageboxes", 47 "right": "$logo2", 48 "height": 40, 49 "dx": 5, 50 "dy": 10, 51 "border": false 52 }, 53 "footer": { 54 "font": { 55 "name": "$myCourier" 56 }, 57 "left": "pdfcpu: %v\nCreated: %t", 58 "center": "Page %p of %P", 59 "right": "Source:\ntestdata/json/create/images.json", 60 "height": 30, 61 "dx": 5, 62 "dy": 5, 63 "border": false 64 }, 65 "images": { 66 "logo1": { 67 "src": "$logo1", 68 "url": "https://pdfcpu.io", 69 "margin": { 70 "width": 5 71 } 72 }, 73 "logo2": { 74 "src": "$logo2", 75 "url": "https://github.com/pdfcpu/pdfcpu", 76 "margin": { 77 "width": 5 78 } 79 } 80 }, 81 "texts": { 82 "label": { 83 "dx": 2, 84 "dy": 2, 85 "font": { 86 "name": "$myCourier" 87 } 88 } 89 }, 90 "pages": { 91 "1": { 92 "bgcol": "#8fbc2f", 93 "content": { 94 "bgcol": "#8fbcff", 95 "border": { 96 "width": 10, 97 "col": "#698b69", 98 "style": "round" 99 }, 100 "guides": [ 101 { 102 "pos": [ 103 250, 104 150 105 ] 106 }, 107 { 108 "pos": [ 109 250, 110 350 111 ] 112 }, 113 { 114 "pos": [ 115 450, 116 -1 117 ] 118 }, 119 { 120 "pos": [ 121 100, 122 100 123 ] 124 } 125 ], 126 "image": [ 127 { 128 "src": "../../testdata/resources/demo.png", 129 "pos": [ 130 0, 131 0 132 ], 133 "width": 200, 134 "height": 100, 135 "border": { 136 "width": 5, 137 "col": "$DarkOrange", 138 "style": "round" 139 } 140 }, 141 { 142 "src": "../../testdata/resources/demo.png", 143 "pos": [ 144 0, 145 150 146 ], 147 "width": 100, 148 "height": 200, 149 "border": { 150 "width": 5, 151 "col": "$DarkOrange", 152 "style": "round" 153 } 154 }, 155 { 156 "src": "../../testdata/resources/demo.png", 157 "pos": [ 158 250, 159 0 160 ], 161 "width": 200, 162 "border": { 163 "width": 5, 164 "col": "$DarkOrange", 165 "style": "round" 166 } 167 }, 168 { 169 "src": "../../testdata/resources/demo.png", 170 "pos": [ 171 250, 172 150 173 ], 174 "height": 200, 175 "border": { 176 "width": 5, 177 "col": "$DarkOrange", 178 "style": "round" 179 } 180 } 181 ], 182 "text": [ 183 { 184 "name": "$label", 185 "value": "w=200, h=100", 186 "pos": [ 187 0, 188 100 189 ] 190 }, 191 { 192 "name": "$label", 193 "value": "w=100, h=200", 194 "pos": [ 195 0, 196 350 197 ] 198 }, 199 { 200 "name": "$label", 201 "value": "w=200", 202 "pos": [ 203 450, 204 0 205 ] 206 }, 207 { 208 "name": "$label", 209 "value": "h=200", 210 "pos": [ 211 250, 212 350 213 ] 214 }, 215 { 216 "name": "$label", 217 "value": "border:5", 218 "align": "center", 219 "pos": [ 220 -1, 221 375 222 ], 223 "font": { 224 "name": "$myCourier", 225 "size": 18 226 } 227 } 228 ] 229 } 230 }, 231 "2": { 232 "bgcol": "#8fbc2f", 233 "content": { 234 "bgcol": "#8fbcff", 235 "border": { 236 "width": 10, 237 "col": "#698b69", 238 "style": "round" 239 }, 240 "guides": [ 241 { 242 "pos": [ 243 250, 244 150 245 ] 246 }, 247 { 248 "pos": [ 249 250, 250 350 251 ] 252 } 253 ], 254 "image": [ 255 { 256 "hide": false, 257 "src": "../../testdata/resources/demo.png", 258 "pos": [ 259 0, 260 0 261 ], 262 "width": 200, 263 "height": 100, 264 "bgCol": "$Beige", 265 "border": { 266 "width": 5, 267 "col": "$DarkOrange", 268 "style": "round" 269 }, 270 "padding": { 271 "width": 10 272 } 273 }, 274 { 275 "hide": false, 276 "src": "../../testdata/resources/demo.png", 277 "pos": [ 278 0, 279 150 280 ], 281 "width": 100, 282 "height": 200, 283 "bgCol": "$Beige", 284 "border": { 285 "width": 5, 286 "col": "$DarkOrange", 287 "style": "round" 288 }, 289 "padding": { 290 "width": 10 291 } 292 }, 293 { 294 "hide": false, 295 "src": "../../testdata/resources/demo.png", 296 "pos": [ 297 250, 298 0 299 ], 300 "width": 200, 301 "bgCol": "$Beige", 302 "border": { 303 "width": 5, 304 "col": "$DarkOrange", 305 "style": "round" 306 }, 307 "padding": { 308 "width": 10 309 } 310 }, 311 { 312 "hide": false, 313 "src": "../../testdata/resources/demo.png", 314 "pos": [ 315 250, 316 150 317 ], 318 "height": 200, 319 "bgCol": "$Beige", 320 "border": { 321 "width": 5, 322 "col": "$DarkOrange", 323 "style": "round" 324 }, 325 "padding": { 326 "width": 10 327 } 328 } 329 ], 330 "text": [ 331 { 332 "name": "$label", 333 "value": "w=200, h=100", 334 "pos": [ 335 0, 336 100 337 ] 338 }, 339 { 340 "name": "$label", 341 "value": "w=100, h=200", 342 "pos": [ 343 0, 344 350 345 ] 346 }, 347 { 348 "name": "$label", 349 "value": "w=200", 350 "pos": [ 351 450, 352 0 353 ] 354 }, 355 { 356 "name": "$label", 357 "value": "h=200", 358 "pos": [ 359 250, 360 350 361 ] 362 }, 363 { 364 "name": "$label", 365 "value": "bgCol, border:5, padding: 10", 366 "align": "center", 367 "pos": [ 368 -1, 369 375 370 ], 371 "font": { 372 "name": "$myCourier", 373 "size": 18 374 } 375 } 376 ] 377 } 378 }, 379 "3": { 380 "content": { 381 "guides": [ 382 { 383 "pos": [ 384 -1, 385 -1 386 ] 387 }, 388 { 389 "pos": [ 390 -1, 391 100 392 ] 393 }, 394 { 395 "pos": [ 396 174, 397 -1 398 ] 399 } 400 ], 401 "image": [ 402 { 403 "hide": false, 404 "src": "../../testdata/resources/demo.png", 405 "anchor": "topleft", 406 "height": 100, 407 "border": { 408 "width": 5, 409 "col": "$DarkOrange", 410 "style": "round" 411 } 412 }, 413 { 414 "hide": false, 415 "src": "../../testdata/resources/demo.png", 416 "anchor": "topcenter", 417 "height": 100, 418 "border": { 419 "width": 5, 420 "col": "$DarkOrange", 421 "style": "round" 422 }, 423 "padding": { 424 "width": 10 425 }, 426 "bgCol": "$Beige" 427 }, 428 { 429 "hide": false, 430 "src": "../../testdata/resources/demo.png", 431 "anchor": "topright", 432 "height": 100 433 }, 434 { 435 "hide": false, 436 "src": "../../testdata/resources/demo.png", 437 "anchor": "left", 438 "height": 100, 439 "border": { 440 "width": 5, 441 "col": "$DarkOrange", 442 "style": "round" 443 }, 444 "padding": { 445 "width": 10 446 }, 447 "bgCol": "$Beige" 448 }, 449 { 450 "hide": false, 451 "src": "../../testdata/resources/demo.png", 452 "anchor": "center", 453 "height": 100 454 }, 455 { 456 "hide": false, 457 "src": "../../testdata/resources/demo.png", 458 "anchor": "right", 459 "height": 100, 460 "border": { 461 "width": 5, 462 "col": "$DarkOrange", 463 "style": "round" 464 } 465 }, 466 { 467 "hide": false, 468 "src": "../../testdata/resources/demo.png", 469 "anchor": "bottomleft", 470 "height": 100 471 }, 472 { 473 "hide": false, 474 "src": "../../testdata/resources/demo.png", 475 "anchor": "bottomcenter", 476 "height": 100, 477 "border": { 478 "width": 5, 479 "col": "$DarkOrange", 480 "style": "round" 481 } 482 }, 483 { 484 "hide": false, 485 "src": "../../testdata/resources/demo.png", 486 "anchor": "bottomright", 487 "height": 100, 488 "border": { 489 "width": 5, 490 "col": "$DarkOrange", 491 "style": "round" 492 }, 493 "padding": { 494 "width": 10 495 }, 496 "bgCol": "$Beige" 497 } 498 ], 499 "text": [ 500 { 501 "name": "$label", 502 "value": "anchored, height: 100", 503 "align": "center", 504 "pos": [ 505 -1, 506 290 507 ], 508 "font": { 509 "name": "$myCourier", 510 "size": 18 511 } 512 } 513 ] 514 } 515 }, 516 "4": { 517 "content": { 518 "guides": [ 519 { 520 "pos": [ 521 -1, 522 -1 523 ] 524 }, 525 { 526 "pos": [ 527 -1, 528 86 529 ] 530 }, 531 { 532 "pos": [ 533 150, 534 -1 535 ] 536 } 537 ], 538 "image": [ 539 { 540 "hide": false, 541 "src": "../../testdata/resources/demo.png", 542 "anchor": "topleft", 543 "width": 150, 544 "border": { 545 "width": 5, 546 "col": "$DarkOrange", 547 "style": "round" 548 } 549 }, 550 { 551 "hide": false, 552 "src": "../../testdata/resources/demo.png", 553 "anchor": "topcenter", 554 "width": 150, 555 "border": { 556 "width": 5, 557 "col": "$DarkOrange", 558 "style": "round" 559 }, 560 "padding": { 561 "width": 10 562 }, 563 "bgCol": "$Beige" 564 }, 565 { 566 "hide": false, 567 "src": "../../testdata/resources/demo.png", 568 "anchor": "topright", 569 "width": 150 570 }, 571 { 572 "hide": false, 573 "src": "../../testdata/resources/demo.png", 574 "anchor": "left", 575 "width": 150, 576 "border": { 577 "width": 5, 578 "col": "$DarkOrange", 579 "style": "round" 580 }, 581 "padding": { 582 "width": 10 583 }, 584 "bgCol": "$Beige" 585 }, 586 { 587 "hide": false, 588 "src": "../../testdata/resources/demo.png", 589 "anchor": "center", 590 "width": 150 591 }, 592 { 593 "hide": false, 594 "src": "../../testdata/resources/demo.png", 595 "anchor": "right", 596 "width": 150, 597 "border": { 598 "width": 5, 599 "col": "$DarkOrange", 600 "style": "round" 601 } 602 }, 603 { 604 "hide": false, 605 "src": "../../testdata/resources/demo.png", 606 "anchor": "bottomleft", 607 "width": 150 608 }, 609 { 610 "hide": false, 611 "src": "../../testdata/resources/demo.png", 612 "anchor": "bottomcenter", 613 "width": 150, 614 "border": { 615 "width": 5, 616 "col": "$DarkOrange", 617 "style": "round" 618 } 619 }, 620 { 621 "hide": false, 622 "src": "../../testdata/resources/demo.png", 623 "anchor": "bottomright", 624 "width": 150, 625 "border": { 626 "width": 5, 627 "col": "$DarkOrange", 628 "style": "round" 629 }, 630 "padding": { 631 "width": 10 632 }, 633 "bgCol": "$Beige" 634 } 635 ], 636 "text": [ 637 { 638 "name": "$label", 639 "value": "anchored, width: 150", 640 "align": "center", 641 "pos": [ 642 -1, 643 290 644 ], 645 "font": { 646 "name": "$myCourier", 647 "size": 18 648 } 649 } 650 ] 651 } 652 }, 653 "5": { 654 "content": { 655 "guides": [ 656 { 657 "pos": [ 658 -1, 659 -1 660 ] 661 }, 662 { 663 "pos": [ 664 100, 665 100 666 ] 667 } 668 ], 669 "image": [ 670 { 671 "hide": false, 672 "src": "../../testdata/resources/demo.png", 673 "anchor": "topleft", 674 "width": 100, 675 "height":100, 676 "border": { 677 "width": 5, 678 "col": "$DarkOrange", 679 "style": "round" 680 } 681 }, 682 { 683 "hide": false, 684 "src": "../../testdata/resources/demo.png", 685 "anchor": "topcenter", 686 "width": 100, 687 "height":100, 688 "border": { 689 "width": 5, 690 "col": "$DarkOrange", 691 "style": "round" 692 }, 693 "padding": { 694 "width": 10 695 }, 696 "bgCol": "$Beige" 697 }, 698 { 699 "hide": false, 700 "src": "../../testdata/resources/demo.png", 701 "anchor": "topright", 702 "width": 100, 703 "height":100 704 }, 705 { 706 "hide": false, 707 "src": "../../testdata/resources/demo.png", 708 "anchor": "left", 709 "width": 100, 710 "height":100, 711 "border": { 712 "width": 5, 713 "col": "$DarkOrange", 714 "style": "round" 715 }, 716 "padding": { 717 "width": 10 718 }, 719 "bgCol": "$Beige" 720 }, 721 { 722 "hide": false, 723 "src": "../../testdata/resources/demo.png", 724 "anchor": "center", 725 "width": 100, 726 "height":100 727 }, 728 { 729 "hide": false, 730 "src": "../../testdata/resources/demo.png", 731 "anchor": "right", 732 "width": 100, 733 "height":100, 734 "border": { 735 "width": 5, 736 "col": "$DarkOrange", 737 "style": "round" 738 } 739 }, 740 { 741 "hide": false, 742 "src": "../../testdata/resources/demo.png", 743 "anchor": "bottomleft", 744 "width": 100, 745 "height":100 746 }, 747 { 748 "hide": false, 749 "src": "../../testdata/resources/demo.png", 750 "anchor": "bottomcenter", 751 "width": 100, 752 "height":100, 753 "border": { 754 "width": 5, 755 "col": "$DarkOrange", 756 "style": "round" 757 } 758 }, 759 { 760 "hide": false, 761 "src": "../../testdata/resources/demo.png", 762 "anchor": "bottomright", 763 "width": 100, 764 "height":100, 765 "border": { 766 "width": 5, 767 "col": "$DarkOrange", 768 "style": "round" 769 }, 770 "padding": { 771 "width": 10 772 }, 773 "bgCol": "$Beige" 774 } 775 ], 776 "text": [ 777 { 778 "name": "$label", 779 "value": "anchored, width: 100, height: 100", 780 "align": "center", 781 "pos": [ 782 -1, 783 290 784 ], 785 "font": { 786 "name": "$myCourier", 787 "size": 18 788 } 789 } 790 ] 791 } 792 } 793 } 794 }