github.com/pdfcpu/pdfcpu@v0.11.1/pkg/testdata/json/form/demoSinglePage/person.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": "Person Of Impact",
    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/person.json",
    69  		"height": 30,
    70  		"dx": 5,
    71  		"dy": 5,
    72  		"border": false
    73  	},
    74  	"pages": {
    75  		"1": {
    76  			"content": {
    77  				"textfield": [
    78  					{
    79  						"hide": false,
    80  						"id": "firstName",
    81  						"tip": "First Name",
    82  						"tab": 1,
    83  						"pos": [
    84  							120,
    85  							665
    86  						],
    87  						"width": 200,
    88  						"align": "left",
    89  						"border": {
    90  							"width": 1,
    91  							"col": "Gray"
    92  						},
    93  						"label": {
    94  							"value": "First Name:",
    95  							"width": 80,
    96  							"gap": 10,
    97  							"align": "left",
    98  							"pos": "left"
    99  						}
   100  					},
   101  					{
   102  						"hide": false,
   103  						"id": "lastName",
   104  						"tip": "Last Name",
   105  						"tab": 2,
   106  						"pos": [
   107  							120,
   108  							645
   109  						],
   110  						"width": 200,
   111  						"align": "left",
   112  						"border": {
   113  							"width": 1,
   114  							"col": "Gray"
   115  						},
   116  						"label": {
   117  							"value": "Last Name:",
   118  							"width": 80,
   119  							"gap": 10,
   120  							"align": "left",
   121  							"pos": "left"
   122  						}
   123  					},
   124  					{
   125  						"hide": false,
   126  						"id": "country",
   127  						"tip": "Country",
   128  						"tab": 6,
   129  						"pos": [
   130  							120,
   131  							587
   132  						],
   133  						"width": 200,
   134  						"align": "left",
   135  						"border": {
   136  							"width": 1,
   137  							"col": "Gray"
   138  						},
   139  						"label": {
   140  							"value": "Country:",
   141  							"width": 80,
   142  							"gap": 10,
   143  							"align": "left",
   144  							"pos": "left"
   145  						}
   146  					},
   147  					{
   148  						"hide": false,
   149  						"id": "planet",
   150  						"tip": "Planet",
   151  						"default": "Earth",
   152  						"locked": true,
   153  						"tab": 7,
   154  						"pos": [
   155  							120,
   156  							567
   157  						],
   158  						"width": 50,
   159  						"align": "left",
   160  						"border": {
   161  							"width": 1,
   162  							"col": "Gray"
   163  						},
   164  						"label": {
   165  							"value": "Planet:",
   166  							"width": 80,
   167  							"gap": 10,
   168  							"align": "left",
   169  							"pos": "left"
   170  						}
   171  					},
   172  					{
   173  						"hide": false,
   174  						"id": "occup",
   175  						"tip": "Occupation",
   176  						"tab": 8,
   177  						"pos": [
   178  							120,
   179  							537
   180  						],
   181  						"width": 200,
   182  						"align": "left",
   183  						"border": {
   184  							"width": 1,
   185  							"col": "Gray"
   186  						},
   187  						"label": {
   188  							"value": "Occupation:",
   189  							"width": 80,
   190  							"gap": 10,
   191  							"align": "left",
   192  							"pos": "left"
   193  						}
   194  					}
   195  				],
   196  				"datefield": [
   197  					{
   198  						"hide": false,
   199  						"id": "dob",
   200  						"tab": 3,
   201  						"format": "dd.mm.yyyy",
   202  						"pos": [
   203  							120,
   204  							625
   205  						],
   206  						"width": 70,
   207  						"border": {
   208  							"width": 1,
   209  							"col": "Gray"
   210  						},
   211  						"label": {
   212  							"value": "Date Of Birth:",
   213  							"width": 80,
   214  							"gap": 10,
   215  							"align": "left",
   216  							"pos": "left"
   217  						}
   218  					}
   219  				],
   220  				"radiobuttongroup": [
   221  					{
   222  						"hide": false,
   223  						"id": "gender",
   224  						"tip": "Gender",
   225  						"tab": 5,
   226  						"orientation": "hor",
   227  						"pos": [
   228  							120,
   229  							608
   230  						],
   231  						"width": 12,
   232  						"buttons": {
   233  							"values": [
   234  								"female",
   235  								"male",
   236  								"non-binary"
   237  							],
   238  							"label": {
   239  								"value": "dummy",
   240  								"width": 50,
   241  								"gap": 10,
   242  								"pos": "right"
   243  							}
   244  						},
   245  						"label": {
   246  							"value": "Gender:",
   247  							"width": 80,
   248  							"gap": 10,
   249  							"align": "left",
   250  							"pos": "left"
   251  						}
   252  					}
   253  				],
   254  				"checkbox": [
   255  					{
   256  						"hide": false,
   257  						"id": "dobVerified",
   258  						"tip": "is dob verified?",
   259  						"tab": 4,
   260  						"pos": [
   261  							308,
   262  							627
   263  						],
   264  						"width": 12,
   265  						"label": {
   266  							"value": "verified",
   267  							"width": 40,
   268  							"gap": 5,
   269  							"align": "left",
   270  							"pos": "left"
   271  						}
   272  					}
   273  				],
   274  				"combobox": [
   275  					{
   276  						"hide": false,
   277  						"id": "status",
   278  						"tip": "Status",
   279  						"tab": 9,
   280  						"options": [
   281  							"alive",
   282  							"deceased",
   283  							"imprisoned",
   284  							"killed",
   285  							"unknown"
   286  						],
   287  						"default": "unknown",
   288  						"edit": false,
   289  						"pos": [
   290  							120,
   291  							510
   292  						],
   293  						"width": 200,
   294  						"border": {
   295  							"width": 1,
   296  							"col": "Gray"
   297  						},
   298  						"label": {
   299  							"value": "Status:",
   300  							"width": 80,
   301  							"gap": 10,
   302  							"align": "left",
   303  							"pos": "left"
   304  						}
   305  					},
   306  					{
   307  						"hide": false,
   308  						"id": "license",
   309  						"tip": "License",
   310  						"tab": 10,
   311  						"options": [
   312  							"CC BY 2.0",
   313  							"CC BY 3.0",
   314  							"CC BY 4.0",
   315  							"CC BY-SA 2.0",
   316  							"CC BY-SA 2.5",
   317  							"CC BY-SA 3.0",
   318  							"CC BY-SA 3.0 de",
   319  							"CC BY-SA 4.0",
   320  							"Copyrighted free use",
   321  							"PDM-owner",
   322  							"Public Domain",
   323  							"Twitter",
   324  							"fair use",
   325  							"unknown"
   326  						],
   327  						"pos": [
   328  							120,
   329  							280
   330  						],
   331  						"width": 200,
   332  						"height": 160,
   333  						"border": {
   334  							"width": 1,
   335  							"col": "Gray"
   336  						},
   337  						"label": {
   338  							"value": "License:",
   339  							"width": 80,
   340  							"gap": 10,
   341  							"align": "left",
   342  							"pos": "left"
   343  						}
   344  					}
   345  				]
   346  			}
   347  		}
   348  	}
   349  }