github.com/pdfcpu/pdfcpu@v0.11.1/pkg/testdata/json/form/textareaGroup.json (about)

     1  {
     2  	"paper": "A4P",
     3  	"crop": "10",
     4  	"origin": "LowerLeft",
     5  	"contentBox": false,
     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": "Textarea Groups",
    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/textareaGroup.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  	"fieldgroups": {
    82  		"tfg": {
    83  			"bgCol": "White",
    84  			"border": {
    85  				"width": 0,
    86  				"col": "Black",
    87  				"style": "round"
    88  			},
    89  			"padding": {
    90  				"width": 6
    91  			}
    92  		}
    93  	},
    94  	"pages": {
    95  		"1": {
    96  			"bgcol": "LightGray",
    97  			"fonts": {
    98  				"labelOrange": {
    99  					"name": "Courier-Bold",
   100  					"comment": "label fontsize enforced by input font!",
   101  					"size": 12,
   102  					"col": "$DarkOrange"
   103  				},
   104  				"labelGreen": {
   105  					"name": "Courier-Bold",
   106  					"comment": "label fontsize enforced by input font!",
   107  					"size": 12,
   108  					"col": "$DarkSeaGreen"
   109  				}
   110  			},
   111  			"content": {
   112  				"guides": [
   113  					{
   114  						"pos": [
   115  							200,
   116  							640
   117  						]
   118  					}
   119  				],
   120  				"fieldGroup": [
   121  					{
   122  						"name": "$tfg",
   123  						"hide": false,
   124  						"textfield": [
   125  							{
   126  								"hide": false,
   127  								"multiline": true,
   128  								"id": "llnote1",
   129  								"tip": "note",
   130  								"pos": [
   131  									200,
   132  									640
   133  								],
   134  								"width": 100,
   135  								"height":50,
   136  								"align": "left",
   137  								"bgCol": "$DarkOrange",
   138  								"border": {
   139  									"width": 1,
   140  									"col": "Black"
   141  								},
   142  								"label": {
   143  									"value": "First note:",
   144  									"width": 100,
   145  									"gap": 10,
   146  									"align": "left",
   147  									"pos": "left",
   148  									"font": {
   149  										"col": "$DarkOrange"
   150  									}
   151  								}
   152  							},
   153  							{
   154  								"hide": false,
   155  								"id": "llnote2",
   156  								"tip": "note",
   157  								"multiline": true,
   158  								"pos": [
   159  									200,
   160  									580
   161  								],
   162  								"width": 100,
   163  								"height":50,
   164  								"align": "left",
   165  								"bgCol": "$DarkOrange",
   166  								"border": {
   167  									"width": 1,
   168  									"col": "Black"
   169  								},
   170  								"label": {
   171  									"value": "Second note:",
   172  									"width": 100,
   173  									"gap": 10,
   174  									"align": "left",
   175  									"pos": "left"
   176  								}
   177  							}
   178  						]
   179  					},
   180  					{
   181  						"name": "$tfg",
   182  						"hide": false,
   183  						"textfield": [
   184  							{
   185  								"hide": false,
   186  								"id": "lrnote1",
   187  								"tip": "note",
   188  								"multiline": true,
   189  								"value": "line1\nand line2",
   190  								"pos": [
   191  									440,
   192  									640
   193  								],
   194  								"width": 100,
   195  								"height":50,
   196  								"align": "left",
   197  								"bgCol": "$DarkOrange",
   198  								"border": {
   199  									"width": 1,
   200  									"col": "Black"
   201  								},
   202  								"label": {
   203  									"value": "First note:",
   204  									"width": 100,
   205  									"gap": 10,
   206  									"align": "right",
   207  									"pos": "left"
   208  								}
   209  							},
   210  							{
   211  								"hide": false,
   212  								"id": "lrnote2",
   213  								"tip": "note",
   214  								"multiline": true,
   215  								"value": "line1\nand line2",
   216  								"pos": [
   217  									440,
   218  									580
   219  								],
   220  								"width": 100,
   221  								"height":50,
   222  								"align": "left",
   223  								"bgCol": "$DarkOrange",
   224  								"border": {
   225  									"width": 1,
   226  									"col": "Black"
   227  								},
   228  								"label": {
   229  									"value": "Second note:",
   230  									"width": 100,
   231  									"gap": 10,
   232  									"align": "right",
   233  									"pos": "left"
   234  								}
   235  							}
   236  						]
   237  					},
   238  					{
   239  						"name": "$tfg",
   240  						"hide": false,
   241  						"textfield": [
   242  							{
   243  								"hide": false,
   244  								"id": "rlnote1",
   245  								"tip": "note",
   246  								"multiline": true,
   247  								"pos": [
   248  									90,
   249  									485
   250  								],
   251  								"width": 100,
   252  								"height":50,
   253  								"align": "right",
   254  								"bgCol": "$DarkSeaGreen",
   255  								"border": {
   256  									"width": 1,
   257  									"col": "Black"
   258  								},
   259  								"label": {
   260  									"value": "First note",
   261  									"width": 100,
   262  									"gap": 10,
   263  									"align": "left",
   264  									"pos": "right",
   265  									"font": {
   266  										"col": "$DarkSeaGreen"
   267  									}
   268  								}
   269  							},
   270  							{
   271  								"hide": false,
   272  								"id": "rlnote2",
   273  								"tip": "note",
   274  								"multiline": true,
   275  								"pos": [
   276  									90,
   277  									425
   278  								],
   279  								"width": 100,
   280  								"height":50,
   281  								"align": "right",
   282  								"bgCol": "$DarkSeaGreen",
   283  								"border": {
   284  									"width": 1,
   285  									"col": "Black"
   286  								},
   287  								"label": {
   288  									"value": "Second note",
   289  									"width": 100,
   290  									"gap": 10,
   291  									"align": "left",
   292  									"pos": "right"
   293  								}
   294  							}
   295  						]
   296  					},
   297  					{
   298  						"name": "$tfg",
   299  						"textfield": [
   300  							{
   301  								"hide": false,
   302  								"id": "rrnote1",
   303  								"tip": "note",
   304  								"multiline": true,
   305  								"value": "line1\nand line2",
   306  								"pos": [
   307  									330,
   308  									485
   309  								],
   310  								"width": 100,
   311  								"height":50,
   312  								"align": "right",
   313  								"bgCol": "$DarkSeaGreen",
   314  								"border": {
   315  									"width": 1,
   316  									"col": "Black"
   317  								},
   318  								"label": {
   319  									"value": "First note",
   320  									"width": 100,
   321  									"gap": 10,
   322  									"align": "right",
   323  									"pos": "right"
   324  								}
   325  							},
   326  							{
   327  								"hide": false,
   328  								"id": "rrnote2",
   329  								"tip": "note",
   330  								"multiline": true,
   331  								"value": "line1\nand line2",
   332  								"pos": [
   333  									330,
   334  									425
   335  								],
   336  								"width": 100,
   337  								"height":50,
   338  								"align": "right",
   339  								"bgCol": "$DarkSeaGreen",
   340  								"border": {
   341  									"width": 1,
   342  									"col": "Black"
   343  								},
   344  								"label": {
   345  									"value": "Second note",
   346  									"width": 100,
   347  									"gap": 10,
   348  									"align": "right",
   349  									"pos": "right"
   350  								}
   351  							}
   352  						]
   353  					},
   354  					{
   355  						"name": "$tfg",
   356  						"textfield": [
   357  							{
   358  								"hide": false,
   359  								"id": "tlnote",
   360  								"tip": "note",
   361  								"multiline": true,
   362  								"pos": [
   363  									100,
   364  									310
   365  								],
   366  								"width": 100,
   367  								"height":50,
   368  								"align": "left",
   369  								"bgCol": "LightGray",
   370  								"border": {
   371  									"width": 1,
   372  									"col": "#C00000"
   373  								},
   374  								"label": {
   375  									"value": "Note",
   376  									"width": 100,
   377  									"align": "left",
   378  									"pos": "top"
   379  								}
   380  							}
   381  						]
   382  					},
   383  					{
   384  						"name": "$tfg",
   385  						"textfield": [
   386  							{
   387  								"hide": false,
   388  								"id": "tcnote",
   389  								"tip": "note",
   390  								"multiline": true,
   391  								"pos": [
   392  									250,
   393  									310
   394  								],
   395  								"width": 100,
   396  								"height":50,
   397  								"align": "center",
   398  								"bgCol": "LightGray",
   399  								"border": {
   400  									"width": 1,
   401  									"col": "#C00000"
   402  								},
   403  								"label": {
   404  									"value": "Note",
   405  									"width": 100,
   406  									"align": "center",
   407  									"pos": "top"
   408  								}
   409  							}
   410  						]
   411  					},
   412  					{
   413  						"name": "$tfg",
   414  						"textfield": [
   415  							{
   416  								"hide": false,
   417  								"id": "trnote",
   418  								"tip": "note",
   419  								"multiline": true,
   420  								"pos": [
   421  									400,
   422  									310
   423  								],
   424  								"width": 100,
   425  								"height":50,
   426  								"align": "right",
   427  								"bgCol": "LightGray",
   428  								"border": {
   429  									"width": 1,
   430  									"col": "#C00000"
   431  								},
   432  								"label": {
   433  									"value": "Note",
   434  									"width": 100,
   435  									"align": "right",
   436  									"pos": "top"
   437  								}
   438  							}
   439  						]
   440  					},
   441  					{
   442  						"name": "$tfg",
   443  						"textfield": [
   444  							{
   445  								"hide": false,
   446  								"id": "tclnote",
   447  								"tip": "note",
   448  								"multiline": true,
   449  								"pos": [
   450  									250,
   451  									220
   452  								],
   453  								"width": 100,
   454  								"height":50,
   455  								"align": "left",
   456  								"bgCol": "LightGray",
   457  								"border": {
   458  									"width": 1,
   459  									"col": "Black"
   460  								},
   461  								"label": {
   462  									"value": "Note",
   463  									"width": 100,
   464  									"align": "center",
   465  									"pos": "top"
   466  								}
   467  							}
   468  						]
   469  					},
   470  					{
   471  						"name": "$tfg",
   472  						"textfield": [
   473  							{
   474  								"hide": false,
   475  								"id": "blnote",
   476  								"tip": "note",
   477  								"multiline": true,
   478  								"pos": [
   479  									100,
   480  									110
   481  								],
   482  								"width": 100,
   483  								"height":50,
   484  								"align": "left",
   485  								"border": {
   486  									"width": 1,
   487  									"col": "Gray"
   488  								},
   489  								"label": {
   490  									"value": "Note",
   491  									"width": 100,
   492  									"align": "left",
   493  									"pos": "bottom"
   494  								}
   495  							}
   496  						]
   497  					},
   498  					{
   499  						"name": "$tfg",
   500  						"textfield": [
   501  							{
   502  								"hide": false,
   503  								"id": "bcnote",
   504  								"tip": "note",
   505  								"multiline": true,
   506  								"pos": [
   507  									250,
   508  									110
   509  								],
   510  								"width": 100,
   511  								"height":50,
   512  								"align": "center",
   513  								"border": {
   514  									"width": 1,
   515  									"col": "Gray"
   516  								},
   517  								"label": {
   518  									"value": "Note",
   519  									"width": 100,
   520  									"align": "center",
   521  									"pos": "bottom"
   522  								}
   523  							}
   524  						]
   525  					},
   526  					{
   527  						"name": "$tfg",
   528  						"textfield": [
   529  							{
   530  								"hide": false,
   531  								"id": "brnote",
   532  								"tip": "note",
   533  								"multiline": true,
   534  								"pos": [
   535  									400,
   536  									110
   537  								],
   538  								"width": 100,
   539  								"height":50,
   540  								"align": "right",
   541  								"border": {
   542  									"width": 1,
   543  									"col": "Gray"
   544  								},
   545  								"label": {
   546  									"value": "Note",
   547  									"width": 100,
   548  									"align": "right",
   549  									"pos": "bottom"
   550  								}
   551  							}
   552  						]
   553  					},
   554  					{
   555  						"name": "$tfg",
   556  						"textfield": [
   557  							{
   558  								"hide": false,
   559  								"id": "bclnote",
   560  								"tip": "note",
   561  								"multiline": true,
   562  								"pos": [
   563  									250,
   564  									20
   565  								],
   566  								"width": 100,
   567  								"height":50,
   568  								"align": "left",
   569  								"border": {
   570  									"width": 1,
   571  									"col": "Black"
   572  								},
   573  								"label": {
   574  									"value": "Note",
   575  									"width": 100,
   576  									"align": "center",
   577  									"pos": "bottom"
   578  								}
   579  							}
   580  						]
   581  					}
   582  				],
   583  				"text": [
   584  					{
   585  						"value": "Textareas with left label:",
   586  						"pos": [
   587  							0,
   588  							700
   589  						],
   590  						"font": {
   591  							"name": "$myCourier"
   592  						}
   593  					},
   594  					{
   595  						"value": "Textareas with right label:",
   596  						"pos": [
   597  							0,
   598  							545
   599  						],
   600  						"font": {
   601  							"name": "$myCourier"
   602  						}
   603  					},
   604  					{
   605  						"value": "Textareas with top label:",
   606  						"pos": [
   607  							0,
   608  							390
   609  						],
   610  						"font": {
   611  							"name": "$myCourier"
   612  						}
   613  					},
   614  					{
   615  						"value": "Textareas with bottom label:",
   616  						"pos": [
   617  							0,
   618  							180
   619  						],
   620  						"font": {
   621  							"name": "$myCourier"
   622  						}
   623  					}
   624  				]
   625  			}
   626  		}
   627  	}
   628  }