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

     1  {
     2  	"paper": "A4P",
     3  	"crop": "10",
     4  	"origin": "LowerLeft",
     5  	"contentBox": false,
     6  	"debug": false,
     7  	"guides": false,
     8  	"dirs": {
     9  		"images": "../../testdata/resources"
    10  	},
    11  	"files": {
    12  		"logo1": "$images/logoVerySmall.png",
    13  		"logo2": "$images/github.png"
    14  	},
    15  	"images": {
    16  		"logo1": {
    17  			"src": "$logo1",
    18  			"url": "https://pdfcpu.io",
    19  			"margin": {
    20  				"width": 5
    21  			}
    22  		},
    23  		"logo2": {
    24  			"src": "$logo2",
    25  			"url": "https://github.com/pdfcpu/pdfcpu",
    26  			"margin": {
    27  				"width": 5
    28  			}
    29  		}
    30  	},
    31  	"fonts": {
    32  		"myCourierBold": {
    33  			"name": "Courier-Bold",
    34  			"size": 12
    35  		},
    36  		"input": {
    37  			"name": "Helvetica",
    38  			"size": 12
    39  		},
    40  		"label": {
    41  			"name": "$input"
    42  		}
    43  	},
    44  	"margin": {
    45  		"width": 10
    46  	},
    47  	"header": {
    48  		"font": {
    49  			"name": "$myCourierBold",
    50  			"size": 24,
    51  			"col": "#C00000"
    52  		},
    53  		"left": "$logo1",
    54  		"center": "Demo Form",
    55  		"right": "$logo2",
    56  		"height": 40,
    57  		"dx": 5,
    58  		"dy": 5,
    59  		"border": false
    60  	},
    61  	"footer": {
    62  		"font": {
    63  			"name": "Courier",
    64  			"size": 9
    65  		},
    66  		"left": "pdfcpu: %v\nCreated: %t",
    67  		"center": "Optimized for A.Reader\nPage %p of %P",
    68  		"right": "Source:\ntestdata/json/form/demoSinglePage/english.json",
    69  		"height": 30,
    70  		"dx": 5,
    71  		"dy": 5,
    72  		"border": false
    73  	},
    74  	
    75  	"pages": {
    76  		"1": {
    77  			"content": {
    78  				"textfield": [
    79  					{
    80  						"hide": false,
    81  						"id": "firstName1",
    82  						"tip": "First Name",
    83  						"tab": 1,
    84  						"default": "Joe",
    85  						"value": "Jackie",
    86  						"pos": [
    87  							120,
    88  							665
    89  						],
    90  						"width": 200,
    91  						"align": "left",
    92  						"border": {
    93  							"width":1,
    94  							"col": "Gray"
    95  						},
    96  						"label": {
    97  							"value": "First Name:",
    98  							"width": 80,
    99  							"gap": 10,
   100  							"align": "left",
   101  							"pos": "left"
   102  						}
   103  					},
   104  					{
   105  						"hide": false,
   106  						"id": "lastName1",
   107  						"tip": "Last Name",
   108  						"tab": 2,
   109  						"default": "Doeby",
   110  						"value": "Doe",
   111  						"pos": [
   112  							120,
   113  							645
   114  						],
   115  						"width": 200,
   116  						"align": "left",
   117  						"border": {
   118  							"width":1,
   119  							"col": "Gray"
   120  						},
   121  						"label": {
   122  							"value": "Last Name:",
   123  							"width": 80,
   124  							"gap": 10,
   125  							"align": "left",
   126  							"pos": "left"
   127  						}
   128  					},
   129  					{
   130  						"hide": false,
   131  						"id": "note1",
   132  						"tip": "Reason",
   133  						"tab": 12,
   134  						"multiline": true,
   135  						"value": "This is a sample text.\nThis is the next line.",
   136  						"pos": [
   137  							120,
   138  							132
   139  						],
   140  						"width": 200,
   141  						"height":70,
   142  						"align": "left",
   143  						"border": {
   144  							"width":1,
   145  							"col": "Gray"
   146  						}
   147  					}
   148  				],
   149  				
   150  				"datefield": [
   151  					{
   152  						"hide": false,
   153  						"id": "dob1",
   154  						"tab": 3,
   155  						"format": "dd.mm.yyyy",
   156  						"default": "01.01.2000",
   157  						"value": "31.12.1999",
   158  						"pos": [
   159  							120,
   160  							625
   161  						],
   162  						"width": 70,
   163  						"border": {
   164  							"width":1,
   165  							"col": "Gray"
   166  						},
   167  						"label": {
   168  							"value": "Date Of Birth:",
   169  							"width": 80,
   170  							"gap": 10,
   171  							"align": "left",
   172  							"pos": "left"
   173  						}
   174  					}
   175  				],
   176  
   177  				"radiobuttongroup": [
   178  					{
   179  						"hide": false,
   180  						"id": "gender1",
   181  						"tip": "Gender",
   182  						"tab": 4,
   183  						"orientation": "hor",
   184  						"default": "male",
   185  						"value": "non-binary",
   186  						"pos": [
   187  							120,
   188  							605
   189  						],
   190  						"width": 12,
   191  						"buttons": {
   192  							"values": [
   193  								"female",
   194  								"male",
   195  								"non-binary"
   196  							],
   197  							"label": {
   198  								"value": "dummy",
   199  								"width": 50,
   200  								"gap": 10,
   201  								"pos": "right"
   202  							}
   203  						},
   204  						"label": {
   205  							"value": "Gender:",
   206  							"width": 80,
   207  							"gap": 10,
   208  							"align": "left",
   209  							"pos": "left"
   210  						}
   211  					}
   212  				],
   213  
   214  				"checkbox": [
   215  					{
   216  						"hide": false,
   217  						"id": "cb11",
   218  						"tip": "Google Search",
   219  						"tab": 7,
   220  						"value": true,
   221  						"pos": [
   222  							30,
   223  							270
   224  						],
   225  						"width": 12,
   226  						"label": {
   227  							"value": "Google Search",
   228  							"width": 80,
   229  							"gap": 5,
   230  							"align": "left",
   231  							"pos": "right"
   232  						}
   233  					},
   234  					{
   235  						"hide": false,
   236  						"id": "cb12",
   237  						"tip": "Github Search",
   238  						"tab": 8,
   239  						"value": false,
   240  						"pos": [
   241  							30,
   242  							250
   243  						],
   244  						"width": 12,
   245  						"label": {
   246  							"value": "Github Search",
   247  							"width": 80,
   248  							"gap": 5,
   249  							"align": "left",
   250  							"pos": "right"
   251  						}
   252  					},
   253  					{
   254  						"hide": false,
   255  						"id": "cb13",
   256  						"tip": "Golang Weekly",
   257  						"tab": 9,
   258  						"value": false,
   259  						"pos": [
   260  							30,
   261  							230
   262  						],
   263  						"width": 12,
   264  						"label": {
   265  							"value": "Golang Weekly",
   266  							"width": 80,
   267  							"gap": 5,
   268  							"align": "left",
   269  							"pos": "right"
   270  						}
   271  					},
   272  					{
   273  						"hide": false,
   274  						"id": "cb14",
   275  						"tip": "Fellow Gopher",
   276  						"tab": 10,
   277  						"value": false,
   278  						"pos": [
   279  							30,
   280  							210
   281  						],
   282  						"width": 12,
   283  						"label": {
   284  							"value": "Fellow Gopher",
   285  							"width": 80,
   286  							"gap": 5,
   287  							"align": "left",
   288  							"pos": "right"
   289  						}
   290  					},
   291  					{
   292  						"hide": false,
   293  						"id": "cb15",
   294  						"tip": "Other",
   295  						"tab": 11,
   296  						"value": false,
   297  						"pos": [
   298  							30,
   299  							190
   300  						],
   301  						"width": 12,
   302  						"label": {
   303  							"value": "Other:",
   304  							"width": 80,
   305  							"gap": 5,
   306  							"align": "left",
   307  							"pos": "right"
   308  						}
   309  					}
   310  				],
   311  
   312  				"listbox": [
   313  					{
   314  						"hide": false,
   315  						"id": "city11",
   316  						"tip": "Favorite city",
   317  						"tab": 5,
   318  						"options": [
   319  							"San Francisco",
   320  							"São Paulo",
   321  							"Vienna"
   322  						],
   323  						"multi": true,
   324  						"defaults": [
   325  							"Vienna",
   326  							"São Paulo"
   327  						],
   328  						"values": [
   329  							"San Francisco",
   330  							"Vienna"
   331  						],
   332  						"pos": [
   333  							120,
   334  							530
   335  						],
   336  						"width": 200,
   337  						"height": 42,
   338  						"border": {
   339  							"width":1,
   340  							"col": "Gray"
   341  						},
   342  						"label": {
   343  							"value": "Favorite city:",
   344  							"width": 80,
   345  							"gap": 10,
   346  							"align": "left",
   347  							"pos": "left"
   348  						}
   349  					}
   350  				],
   351  
   352  				"combobox": [
   353  					{
   354  						"hide": false,
   355  						"id": "city12",
   356  						"tip": "City",
   357  						"tab": 6,
   358  						"options": [
   359  							"London",
   360  							"San Francisco",
   361  							"Sidney"
   362  						],
   363  						"edit": false,
   364  						"default": "San Francisco",
   365  						"value": "Sidney",
   366  						"pos": [
   367  							120,
   368  							500
   369  						],
   370  						"width": 200,
   371  						"border": {
   372  							"width":1,
   373  							"col": "Gray"
   374  						},
   375  						"label": {
   376  							"value": "City:",
   377  							"width": 80,
   378  							"gap": 10,
   379  							"align": "left",
   380  							"pos": "left"
   381  						}
   382  					}
   383  				],
   384  
   385  				"text": [
   386  					{	
   387  						"hide": false,
   388  						"value": "1) Please tell us about yourself:",
   389  						"pos": [
   390  							10,
   391  							690
   392  						],
   393  						"font": {
   394  							"name": "$label"
   395  						}
   396  					},
   397  					{
   398  						"hide": false,
   399  						"value": "2) How did you hear about pdfcpu:",
   400  						"pos": [
   401  							10,
   402  							290
   403  						],
   404  						"font": {
   405  							"name": "$label"
   406  						}
   407  					}
   408  				]
   409  			}
   410  		}
   411  	}
   412  }