github.com/pdfcpu/pdfcpu@v0.11.1/pkg/testdata/json/form/textfieldGroupSingle.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": 7,
    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": "TextField Groups Single",
    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/textfieldGroupSingle.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  			"hide": false,
    84  			"bgCol": "White",
    85  			"border": {
    86  				"width": 0,
    87  				"col": "Black",
    88  				"style": "round"
    89  			},
    90  			"padding": {
    91  				"width": 6
    92  			}
    93  		}
    94  	},
    95  	"pages": {
    96  		"1": {
    97  			"bgcol": "LightGray",
    98  			"content": {
    99  				"fieldGroup": [
   100  					{
   101  						"name": "$tfg",
   102  						"textfield": [
   103  							{
   104  								"hide": false,
   105  								"id": "llfirstName",
   106  								"tip": "first name",
   107  								"value": "",
   108  								"pos": [
   109  									180,
   110  									670
   111  								],
   112  								"width": 100,
   113  								"align": "left",
   114  								"bgCol": "$DarkOrange",
   115  								"border": {
   116  									"width": 1,
   117  									"col": "Black"
   118  								},
   119  								"label": {
   120  									"value": "First Name:",
   121  									"width": 100,
   122  									"gap": 10,
   123  									"align": "left",
   124  									"pos": "left"
   125  								}
   126  							}
   127  						]
   128  					},
   129  					{
   130  						"name": "$tfg",
   131  						"textfield": [
   132  							{
   133  								"hide": false,
   134  								"id": "lrfirstName",
   135  								"tip": "first name",
   136  								"value": "",
   137  								"pos": [
   138  									180,
   139  									620
   140  								],
   141  								"width": 100,
   142  								"align": "left",
   143  								"bgCol": "$DarkSeaGreen",
   144  								"border": {
   145  									"width": 1,
   146  									"col": "Black"
   147  								},
   148  								"label": {
   149  									"value": "First Name:",
   150  									"width": 100,
   151  									"gap": 10,
   152  									"align": "right",
   153  									"pos": "left"
   154  								}
   155  							}
   156  						]
   157  					},
   158  					{
   159  						"name": "$tfg",
   160  						"textfield": [
   161  							{
   162  								"hide": false,
   163  								"id": "rlfirstName",
   164  								"tip": "first name",
   165  								"value": "",
   166  								"pos": [
   167  									180,
   168  									515
   169  								],
   170  								"width": 100,
   171  								"align": "right",
   172  								"bgCol": "$DarkOrange",
   173  								"label": {
   174  									"value": "First Name",
   175  									"width": 100,
   176  									"gap": 10,
   177  									"align": "left",
   178  									"pos": "right"
   179  								}
   180  							}
   181  						]
   182  					},
   183  					{
   184  						"name": "$tfg",
   185  						"textfield": [
   186  							{
   187  								"hide": false,
   188  								"id": "rrfirstName",
   189  								"tip": "first name",
   190  								"value": "",
   191  								"pos": [
   192  									180,
   193  									465
   194  								],
   195  								"width": 100,
   196  								"align": "right",
   197  								"bgCol": "$DarkSeaGreen",
   198  								"label": {
   199  									"value": "First Name",
   200  									"width": 100,
   201  									"gap": 10,
   202  									"align": "right",
   203  									"pos": "right"
   204  								}
   205  							}
   206  						]
   207  					},
   208  					{
   209  						"hide": false,
   210  						"name": "$tfg",
   211  						"bgCol": "$DarkSeaGreen",
   212  						"textfield": [
   213  							{
   214  								"hide": false,
   215  								"id": "tllfirstName",
   216  								"tip": "first name",
   217  								"value": "",
   218  								"pos": [
   219  									10,
   220  									345
   221  								],
   222  								"width": 100,
   223  								"align": "left",
   224  								"bgCol": "LightGray",
   225  								"label": {
   226  									"value": "First Name",
   227  									"width": 100,
   228  									"gap": 0,
   229  									"align": "left",
   230  									"pos": "top"
   231  								}
   232  							}
   233  						]
   234  					},
   235  					{
   236  						"hide": false,
   237  						"name": "$tfg",
   238  						"bgCol": "$DarkSeaGreen",
   239  						"border": {
   240  							"width": 5,
   241  							"col": "#00AA00",
   242  							"style": "round"
   243  						},
   244  						"textfield": [
   245  							{
   246  								"hide": false,
   247  								"id": "tlrfirstName",
   248  								"tip": "first name",
   249  								"value": "",
   250  								"pos": [
   251  									150,
   252  									345
   253  								],
   254  								"width": 100,
   255  								"align": "left",
   256  								"bgCol": "LightGray",
   257  								"label": {
   258  									"value": "First Name",
   259  									"width": 100,
   260  									"gap": 0,
   261  									"align": "right",
   262  									"pos": "top"
   263  								}
   264  							}
   265  						]
   266  					},
   267  					{
   268  						"name": "$tfg",
   269  						"textfield": [
   270  							{
   271  								"hide": false,
   272  								"id": "trlfirstName",
   273  								"tip": "first name",
   274  								"value": "",
   275  								"pos": [
   276  									310,
   277  									345
   278  								],
   279  								"width": 100,
   280  								"align": "right",
   281  								"bgCol": "LightGray",
   282  								"border": {
   283  									"width": 1,
   284  									"col": "Black"
   285  								},
   286  								"label": {
   287  									"value": "First Name",
   288  									"width": 100,
   289  									"gap": 0,
   290  									"align": "left",
   291  									"pos": "top"
   292  								}
   293  							}
   294  						]
   295  					},
   296  					{
   297  						"name": "$tfg",
   298  						"textfield": [
   299  							{
   300  								"hide": false,
   301  								"id": "trrfirstName",
   302  								"tip": "first name",
   303  								"value": "",
   304  								"pos": [
   305  									450,
   306  									345
   307  								],
   308  								"width": 100,
   309  								"align": "right",
   310  								"bgCol": "LightGray",
   311  								"label": {
   312  									"value": "First Name",
   313  									"width": 100,
   314  									"gap": 0,
   315  									"align": "right",
   316  									"pos": "top"
   317  								}
   318  							}
   319  						]
   320  					},
   321  					{
   322  						"name": "$tfg",
   323  						"textfield": [
   324  							{
   325  								"hide": false,
   326  								"id": "tccfirstName",
   327  								"tip": "first name",
   328  								"value": "",
   329  								"pos": [
   330  									10,
   331  									260
   332  								],
   333  								"width": 100,
   334  								"align": "center",
   335  								"bgCol": "LightGray",
   336  								"label": {
   337  									"value": "First Name",
   338  									"width": 100,
   339  									"gap": 0,
   340  									"align": "center",
   341  									"pos": "top"
   342  								}
   343  							}
   344  						]
   345  					},
   346  					{
   347  						"name": "$tfg",
   348  						"textfield": [
   349  							{
   350  								"hide": false,
   351  								"id": "bllfirstName",
   352  								"tip": "first name",
   353  								"value": "",
   354  								"pos": [
   355  									10,
   356  									150
   357  								],
   358  								"width": 100,
   359  								"align": "left",
   360  								"label": {
   361  									"value": "First Name",
   362  									"width": 100,
   363  									"gap": 0,
   364  									"align": "left",
   365  									"pos": "bottom"
   366  								}
   367  							}
   368  						]
   369  					},
   370  					{
   371  						"name": "$tfg",
   372  						"textfield": [
   373  							{
   374  								"hide": false,
   375  								"id": "blrfirstName",
   376  								"tip": "first name",
   377  								"value": "",
   378  								"pos": [
   379  									150,
   380  									150
   381  								],
   382  								"width": 100,
   383  								"align": "left",
   384  								"label": {
   385  									"value": "First Name",
   386  									"width": 100,
   387  									"gap": 0,
   388  									"align": "right",
   389  									"pos": "bottom"
   390  								}
   391  							}
   392  						]
   393  					},
   394  					{
   395  						"name": "$tfg",
   396  						"textfield": [
   397  							{
   398  								"hide": false,
   399  								"id": "brlfirstName",
   400  								"tip": "first name",
   401  								"value": "",
   402  								"pos": [
   403  									310,
   404  									150
   405  								],
   406  								"width": 100,
   407  								"align": "right",
   408  								"label": {
   409  									"value": "First Name",
   410  									"width": 100,
   411  									"gap": 0,
   412  									"align": "left",
   413  									"pos": "bottom"
   414  								}
   415  							}
   416  						]
   417  					},
   418  					{
   419  						"name": "$tfg",
   420  						"textfield": [
   421  							{
   422  								"hide": false,
   423  								"id": "brrfirstName",
   424  								"tip": "first name",
   425  								"value": "",
   426  								"pos": [
   427  									450,
   428  									150
   429  								],
   430  								"width": 100,
   431  								"align": "right",
   432  								"label": {
   433  									"value": "First Name",
   434  									"width": 100,
   435  									"gap": 0,
   436  									"align": "right",
   437  									"pos": "bottom"
   438  								}
   439  							}
   440  						]
   441  					},
   442  					{
   443  						"comment": "this time w/o template usage",
   444  						"hide": false,
   445  						"bgCol": "White",
   446  						"border": {
   447  							"width": 0,
   448  							"col": "Black",
   449  							"style": "round"
   450  						},
   451  						"padding": {
   452  							"width": 6
   453  						},
   454  						"textfield": [
   455  							{
   456  								"hide": false,
   457  								"id": "bccfirstName",
   458  								"tip": "first name",
   459  								"value": "",
   460  								"pos": [
   461  									10,
   462  									66
   463  								],
   464  								"width": 100,
   465  								"align": "center",
   466  								"label": {
   467  									"value": "First Name",
   468  									"width": 100,
   469  									"gap": 0,
   470  									"align": "center",
   471  									"pos": "bottom"
   472  								}
   473  							}
   474  						]
   475  					}
   476  				],
   477  				"text": [
   478  					{
   479  						"value": "Textfields with left label:",
   480  						"pos": [
   481  							0,
   482  							700
   483  						],
   484  						"font": {
   485  							"name": "$myCourier"
   486  						}
   487  					},
   488  					{
   489  						"value": "Textfields with right label:",
   490  						"pos": [
   491  							0,
   492  							545
   493  						],
   494  						"font": {
   495  							"name": "$myCourier"
   496  						}
   497  					},
   498  					{
   499  						"value": "Textfields with top label:",
   500  						"pos": [
   501  							0,
   502  							390
   503  						],
   504  						"font": {
   505  							"name": "$myCourier"
   506  						}
   507  					},
   508  					{
   509  						"value": "Textfields with bottom label:",
   510  						"pos": [
   511  							0,
   512  							180
   513  						],
   514  						"font": {
   515  							"name": "$myCourier"
   516  						}
   517  					}
   518  				]
   519  			}
   520  		}
   521  	}
   522  }