github.com/pdfcpu/pdfcpu@v0.11.1/pkg/testdata/json/form/textarea.json (about) 1 { 2 "paper": "A4P", 3 "crop": "10", 4 "origin": "LowerLeft", 5 "contentBox": true, 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 "fonts": { 20 "myCourier": { 21 "name": "Courier", 22 "size": 12 23 }, 24 "input": { 25 "name": "Courier", 26 "size": 12, 27 "col": "#222222" 28 }, 29 "label": { 30 "name": "Helvetica", 31 "size": 9, 32 "col": "Gray" 33 } 34 }, 35 "margin": { 36 "width": 10 37 }, 38 "header": { 39 "font": { 40 "name": "Courier-Bold", 41 "size": 24, 42 "col": "#C00000" 43 }, 44 "left": "$logo1", 45 "center": "TextAreas / Multiline Textfields", 46 "right": "$logo2", 47 "height": 40, 48 "dx": 5, 49 "dy": 5, 50 "border": false 51 }, 52 "footer": { 53 "font": { 54 "name": "$myCourier", 55 "size": 9 56 }, 57 "left": "pdfcpu: %v\nCreated: %t", 58 "center": "Optimized for A.Reader\nPage %p of %P", 59 "right": "Source:\ntestdata/json/form/textarea.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 "pages": { 82 "1": { 83 "bgcol": "LightGray", 84 "fonts": { 85 "labelOrange": { 86 "name": "Courier-Bold", 87 "comment": "label fontsize enforced by input font!", 88 "size": 12, 89 "col": "$DarkOrange" 90 }, 91 "labelGreen": { 92 "name": "Courier-Bold", 93 "comment": "label fontsize enforced by input font!", 94 "size": 12, 95 "col": "$DarkSeaGreen" 96 } 97 }, 98 "content": { 99 "textfield": [ 100 { 101 "hide": false, 102 "multiline": true, 103 "id": "llnote1", 104 "tip": "note", 105 "pos": [ 106 200, 107 640 108 ], 109 "width": 100, 110 "height":50, 111 "align": "left", 112 "bgCol": "$DarkOrange", 113 "border": { 114 "width": 1, 115 "col": "Black" 116 }, 117 "label": { 118 "value": "First note:", 119 "width": 100, 120 "gap": 10, 121 "align": "left", 122 "pos": "left", 123 "font": { 124 "col": "$DarkOrange" 125 } 126 } 127 }, 128 { 129 "hide": false, 130 "id": "llnote2", 131 "tip": "note", 132 "multiline": true, 133 "pos": [ 134 200, 135 580 136 ], 137 "width": 100, 138 "height":50, 139 "align": "left", 140 "bgCol": "$DarkOrange", 141 "border": { 142 "width": 1, 143 "col": "Black" 144 }, 145 "label": { 146 "value": "Second note:", 147 "width": 100, 148 "gap": 10, 149 "align": "left", 150 "pos": "left" 151 } 152 }, 153 { 154 "hide": false, 155 "id": "lrnote1", 156 "tip": "note", 157 "multiline": true, 158 "value": "line1\nand line2", 159 "pos": [ 160 440, 161 640 162 ], 163 "width": 100, 164 "height":50, 165 "align": "left", 166 "bgCol": "$DarkOrange", 167 "border": { 168 "width": 1, 169 "col": "Black" 170 }, 171 "label": { 172 "value": "First note:", 173 "width": 100, 174 "gap": 10, 175 "align": "right", 176 "pos": "left" 177 } 178 }, 179 { 180 "hide": false, 181 "id": "lrnote2", 182 "tip": "note", 183 "multiline": true, 184 "value": "line1\nand line2", 185 "pos": [ 186 440, 187 580 188 ], 189 "width": 100, 190 "height":50, 191 "align": "left", 192 "bgCol": "$DarkOrange", 193 "border": { 194 "width": 1, 195 "col": "Black" 196 }, 197 "label": { 198 "value": "Second note:", 199 "width": 100, 200 "gap": 10, 201 "align": "right", 202 "pos": "left" 203 } 204 }, 205 { 206 "hide": false, 207 "id": "rlnote1", 208 "tip": "note", 209 "multiline": true, 210 "pos": [ 211 90, 212 485 213 ], 214 "width": 100, 215 "height":50, 216 "align": "right", 217 "bgCol": "$DarkSeaGreen", 218 "border": { 219 "width": 1, 220 "col": "Black" 221 }, 222 "label": { 223 "value": "First note", 224 "width": 100, 225 "gap": 10, 226 "align": "left", 227 "pos": "right", 228 "font": { 229 "col": "$DarkSeaGreen" 230 } 231 } 232 }, 233 { 234 "hide": false, 235 "id": "rlnote2", 236 "tip": "note", 237 "multiline": true, 238 "pos": [ 239 90, 240 425 241 ], 242 "width": 100, 243 "height":50, 244 "align": "right", 245 "bgCol": "$DarkSeaGreen", 246 "border": { 247 "width": 1, 248 "col": "Black" 249 }, 250 "label": { 251 "value": "Second note", 252 "width": 100, 253 "gap": 10, 254 "align": "left", 255 "pos": "right" 256 } 257 }, 258 { 259 "hide": false, 260 "id": "rrnote1", 261 "tip": "note", 262 "multiline": true, 263 "value": "line1\nand line2", 264 "pos": [ 265 330, 266 485 267 ], 268 "width": 100, 269 "height":50, 270 "align": "right", 271 "bgCol": "$DarkSeaGreen", 272 "border": { 273 "width": 1, 274 "col": "Black" 275 }, 276 "label": { 277 "value": "First note", 278 "width": 100, 279 "gap": 10, 280 "align": "right", 281 "pos": "right" 282 } 283 }, 284 { 285 "hide": false, 286 "id": "rrnote2", 287 "tip": "note", 288 "multiline": true, 289 "value": "line1\nand line2", 290 "pos": [ 291 330, 292 425 293 ], 294 "width": 100, 295 "height":50, 296 "align": "right", 297 "bgCol": "$DarkSeaGreen", 298 "border": { 299 "width": 1, 300 "col": "Black" 301 }, 302 "label": { 303 "value": "Second note", 304 "width": 100, 305 "gap": 10, 306 "align": "right", 307 "pos": "right" 308 } 309 }, 310 { 311 "hide": false, 312 "id": "tlnote", 313 "tip": "note", 314 "multiline": true, 315 "pos": [ 316 100, 317 310 318 ], 319 "width": 100, 320 "height":50, 321 "align": "left", 322 "bgCol": "LightGray", 323 "border": { 324 "width": 1, 325 "col": "#C00000" 326 }, 327 "label": { 328 "value": "Note", 329 "width": 100, 330 "align": "left", 331 "pos": "top" 332 } 333 }, 334 { 335 "hide": false, 336 "id": "tcnote", 337 "tip": "note", 338 "multiline": true, 339 "pos": [ 340 250, 341 310 342 ], 343 "width": 100, 344 "height":50, 345 "align": "center", 346 "bgCol": "LightGray", 347 "border": { 348 "width": 1, 349 "col": "#C00000" 350 }, 351 "label": { 352 "value": "Note", 353 "width": 100, 354 "align": "center", 355 "pos": "top" 356 } 357 }, 358 { 359 "hide": false, 360 "id": "trnote", 361 "tip": "note", 362 "multiline": true, 363 "pos": [ 364 400, 365 310 366 ], 367 "width": 100, 368 "height":50, 369 "align": "right", 370 "bgCol": "LightGray", 371 "border": { 372 "width": 1, 373 "col": "#C00000" 374 }, 375 "label": { 376 "value": "Note", 377 "width": 100, 378 "align": "right", 379 "pos": "top" 380 } 381 }, 382 { 383 "hide": false, 384 "id": "tclnote", 385 "tip": "note", 386 "multiline": true, 387 "pos": [ 388 250, 389 220 390 ], 391 "width": 100, 392 "height":50, 393 "align": "left", 394 "bgCol": "LightGray", 395 "border": { 396 "width": 1, 397 "col": "Black" 398 }, 399 "label": { 400 "value": "Note", 401 "width": 100, 402 "align": "center", 403 "pos": "top" 404 } 405 }, 406 { 407 "hide": false, 408 "id": "blnote", 409 "tip": "note", 410 "multiline": true, 411 "pos": [ 412 100, 413 110 414 ], 415 "width": 100, 416 "height":50, 417 "align": "left", 418 "border": { 419 "width": 1, 420 "col": "Gray" 421 }, 422 "label": { 423 "value": "Note", 424 "width": 100, 425 "align": "left", 426 "pos": "bottom" 427 } 428 }, 429 { 430 "hide": false, 431 "id": "bcnote", 432 "tip": "note", 433 "multiline": true, 434 "pos": [ 435 250, 436 110 437 ], 438 "width": 100, 439 "height":50, 440 "align": "center", 441 "border": { 442 "width": 1, 443 "col": "Gray" 444 }, 445 "label": { 446 "value": "Note", 447 "width": 100, 448 "align": "center", 449 "pos": "bottom" 450 } 451 }, 452 { 453 "hide": false, 454 "id": "brnote", 455 "tip": "note", 456 "multiline": true, 457 "pos": [ 458 400, 459 110 460 ], 461 "width": 100, 462 "height":50, 463 "align": "right", 464 "border": { 465 "width": 1, 466 "col": "Gray" 467 }, 468 "label": { 469 "value": "Note", 470 "width": 100, 471 "align": "right", 472 "pos": "bottom" 473 } 474 }, 475 { 476 "hide": false, 477 "id": "bclnote", 478 "tip": "note", 479 "multiline": true, 480 "pos": [ 481 250, 482 20 483 ], 484 "width": 100, 485 "height":50, 486 "align": "left", 487 "border": { 488 "width": 1, 489 "col": "Black" 490 }, 491 "label": { 492 "value": "Note", 493 "width": 100, 494 "align": "center", 495 "pos": "bottom" 496 } 497 } 498 ], 499 "text": [ 500 { 501 "value": "Textareas with left label:", 502 "pos": [ 503 0, 504 700 505 ], 506 "font": { 507 "name": "$myCourier" 508 } 509 }, 510 { 511 "value": "Textareas with right label:", 512 "pos": [ 513 0, 514 545 515 ], 516 "font": { 517 "name": "$myCourier" 518 } 519 }, 520 { 521 "value": "Textareas with top label:", 522 "pos": [ 523 0, 524 390 525 ], 526 "font": { 527 "name": "$myCourier" 528 } 529 }, 530 { 531 "value": "Textareas with bottom label:", 532 "pos": [ 533 0, 534 180 535 ], 536 "font": { 537 "name": "$myCourier" 538 } 539 } 540 ] 541 } 542 } 543 } 544 }