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

     1  {
     2  	"paper": "A4P",
     3  	"crop": "10",
     4  	"origin": "LowerLeft",
     5  	"contentBox": false,
     6  	"guides": false,
     7  	"colors": {
     8  		"DarkOrange": "#FF8C00",
     9  		"DarkSeaGreen": "#8FBC8F"
    10  	},
    11  	"dirs": {
    12  		"images": "../../testdata/resources"
    13  	},
    14  	"files": {
    15  		"logo1": "$images/logoVerySmall.png",
    16  		"logo2": "$images/github.png"
    17  	},
    18  	"images": {
    19  		"logo1": {
    20  			"src": "$logo1",
    21  			"url": "https://pdfcpu.io",
    22  			"margin": {
    23  				"width": 5
    24  			}
    25  		},
    26  		"logo2": {
    27  			"src": "$logo2",
    28  			"url": "https://github.com/pdfcpu/pdfcpu",
    29  			"margin": {
    30  				"width": 5
    31  			}
    32  		}
    33  	},
    34  	"fonts": {
    35  		"input": {
    36  			"name": "Helvetica",
    37  			"size": 12
    38  		},
    39  		"label": {
    40  			"name": "$input"
    41  		}
    42  	},
    43  	"margin": {
    44  		"width": 10
    45  	},
    46  	"header": {
    47  		"font": {
    48  			"name": "$label",
    49  			"size": 24,
    50  			"col": "#C00000"
    51  		},
    52  		"left": "$logo1",
    53  		"center":  "Demoformulier",
    54  		"rtl": false,
    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/demo/dutch.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": "firstName1",
    81  						"tip": "Voornaam",
    82  						"tab": 1,
    83  						"pos": [
    84  							160,
    85  							665
    86  						],
    87  						"width": 220,
    88  						"align": "left",
    89  						"border": {
    90  							"width":1,
    91  							"col": "Gray"
    92  						},
    93  						"label": {
    94  							"value": "Voornaam:",
    95  							"width": 110,
    96  							"gap": 10,
    97  							"align": "left",
    98  							"pos": "left"
    99  						}
   100  					},
   101  					{
   102  						"hide": false,
   103  						"id": "lastName1",
   104  						"tip": "Achternaam",
   105  						"tab": 2,
   106  						"pos": [
   107  							160,
   108  							645
   109  						],
   110  						"width": 220,
   111  						"align": "left",
   112  						"border": {
   113  							"width":1,
   114  							"col": "Gray"
   115  						},
   116  						"label": {
   117  							"value": "Achternaam:",
   118  							"width": 110,
   119  							"gap": 10,
   120  							"align": "left",
   121  							"pos": "left"
   122  						}
   123  					},
   124  					{
   125  						"hide": false,
   126  						"id": "note1",
   127  						"tip": "Reden",
   128  						"tab": 12,
   129  						"multiline": true,
   130  						"value": "Dit is een voorbeeldtekst.\nDit is de volgende regel.",
   131  						"pos": [
   132  							160,
   133  							132
   134  						],
   135  						"width": 220,
   136  						"height":70,
   137  						"align": "left",
   138  						"border": {
   139  							"width":1,
   140  							"col": "Gray"
   141  						}
   142  					}
   143  				],
   144  				
   145  				"datefield": [
   146  					{
   147  						"hide": false,
   148  						"id": "dob1",
   149  						"tab": 3,
   150  						"format": "dd.mm.yyyy",
   151  						"pos": [
   152  							160,
   153  							625
   154  						],
   155  						"width": 70,
   156  						"border": {
   157  							"width":1,
   158  							"col": "Gray"
   159  						},
   160  						"label": {
   161  							"value": "Geboortedatum:",
   162  							"width": 110,
   163  							"gap": 10,
   164  							"align": "left",
   165  							"pos": "left"
   166   						}
   167  					}
   168  				],
   169  
   170  				"radiobuttongroup": [
   171  					{
   172  						"hide": false,
   173  						"id": "gender1",
   174  						"tip":  "Geslacht",
   175  						"tab": 4,
   176  						"orientation": "hor",
   177  						"pos": [
   178  							160,
   179  							605
   180  						],
   181  						"width": 12,
   182  						"buttons": {
   183  							"values": [
   184  								"vrouw",
   185  								"mannelijk",
   186  								"niet binair"
   187  							],
   188  							"label": {
   189  								"value": "dummy",
   190  								"width": 55,
   191  								"gap": 10,
   192  								"pos": "right"
   193  							}
   194  						},
   195  						"label": {
   196  							"value": "Geslacht:",
   197  							"width": 110,
   198  							"gap": 10,
   199  							"align": "left",
   200  							"pos": "left"
   201  						}
   202  					}
   203  				],
   204  
   205  				"checkbox": [
   206  					{
   207  						"hide": false,
   208  						"id": "cb11",
   209  						"tip": "Google zoeken",
   210  						"tab": 7,
   211  						"value": false,
   212  						"pos": [
   213  							30,
   214  							270
   215  						],
   216  						"width": 12,
   217  						"label": {
   218  							"value": "Google zoeken",
   219  							"width": 80,
   220  							"gap": 5,
   221  							"align": "left",
   222  							"pos": "right"
   223  						}
   224  					},
   225  					{
   226  						"hide": false,
   227  						"id": "cb12",
   228  						"tip": "Github-zoekopdracht",
   229  						"tab": 8,
   230  						"value": false,
   231  						"pos": [
   232  							30,
   233  							250
   234  						],
   235  						"width": 12,
   236  						"label": {
   237  							"value": "Github-zoekopdracht",
   238  							"width": 80,
   239  							"gap": 5,
   240  							"align": "left",
   241  							"pos": "right"
   242  						}
   243  					},
   244  					{
   245  						"hide": false,
   246  						"id": "cb13",
   247  						"tip": "Golang Wekelijks",
   248  						"tab": 9,
   249  						"value": false,
   250  						"pos": [
   251  							30,
   252  							230
   253  						],
   254  						"width": 12,
   255  						"label": {
   256  							"value": "Golang Wekelijks",
   257  							"width": 80,
   258  							"gap": 5,
   259  							"align": "left",
   260  							"pos": "right"
   261  						}
   262  					},
   263  					{
   264  						"hide": false,
   265  						"id": "cb14",
   266  						"tip": "Mede Gopher",
   267  						"tab": 10,
   268  						"value": false,
   269  						"pos": [
   270  							30,
   271  							210
   272  						],
   273  						"width": 12,
   274  						"label": {
   275  							"value": "Mede Gopher",
   276  							"width": 80,
   277  							"gap": 5,
   278  							"align": "left",
   279  							"pos": "right"
   280  						}
   281  					},
   282  					{
   283  						"hide": false,
   284  						"id": "cb15",
   285  						"tip": "Ander",
   286  						"tab": 11,
   287  						"value": false,
   288  						"pos": [
   289  							30,
   290  							190
   291  						],	
   292  						"width": 12,
   293  						"label": {
   294  							"value": "Ander:",
   295  							"width": 80,
   296  							"gap": 5,
   297  							"align": "left",
   298  							"pos": "right"
   299  						}
   300  					}
   301  				],
   302  
   303  				"listbox": [
   304  					{
   305  						"hide": false,
   306  						"id": "city11",
   307  						"tip": "Favoriete stad",
   308  						"tab": 5,
   309  						"options": [
   310  							"San Francisco",
   311  							"So Paulo",
   312  							"Wenen"
   313  						],
   314  						"multi": true,
   315  						"pos": [
   316  							160,
   317  							530
   318  						],
   319  						"width": 220,
   320  						"height": 54,
   321  						"border": {
   322  							"width":1,
   323  							"col": "Gray"
   324  						},
   325  						"label": {
   326  							"value": "Favoriete stad:",
   327  							"width": 110,
   328  							"gap": 10,
   329  							"align": "left",
   330  							"pos": "left"
   331  						}
   332  					}
   333  				],
   334  
   335  				"combobox": [
   336  					{
   337  						"hide": false,
   338  						"id": "city12",
   339  						"tip": "Stad",
   340  						"tab": 6,
   341  						"options": [
   342  							"Amsterdam",
   343  							"Rotterdam",
   344  							"Utrecht"
   345  						],
   346  						"edit": false,
   347  						"pos": [
   348  							160,
   349  							500
   350  						],
   351  						"width": 220,
   352  						"border": {
   353  							"width":1,
   354  							"col": "Gray"
   355  						},
   356  						"label": {
   357  							"value": "Stad:",
   358  							"width": 110,
   359  							"gap": 10,
   360  							"align": "left",
   361  							"pos": "left"
   362  						}
   363  					}
   364  				],
   365  				
   366  				"text": [
   367  					{
   368  						"hide": false,
   369  						"value": "1) Vertel ons iets over jezelf:",
   370  						"pos": [
   371  							10,
   372  							690
   373  						],
   374  						"font": {
   375  							"name": "$label"
   376  						}
   377  					},
   378  					{
   379  						"hide": false,
   380  						"value": "2) Hoe heb je over pdfcpu gehoord:",
   381  						"pos": [
   382  							10,
   383  							290
   384  						],
   385  						"font": {
   386  							"name": "$label"
   387  						}
   388  					}
   389  				]
   390  			}
   391  		},
   392  		"2": {
   393  			"content": {
   394  				"textfield": [
   395  					{
   396  						"hide": false,
   397  						"id": "firstName2",
   398  						"tip": "Voornaam",
   399  						"tab": 1,
   400  						"value": "Jackie",
   401  						"pos": [
   402  							160,
   403  							665
   404  						],
   405  						"width": 220,
   406  						"align": "left",
   407  						"border": {
   408  							"width":1,
   409  							"col": "Gray"
   410  						},
   411  						"label": {
   412  							"value": "Voornaam:",
   413  							"width": 110,
   414  							"gap": 10,
   415  							"align": "left",
   416  							"pos": "left"
   417  						}
   418  					},
   419  					{
   420  						"hide": false,
   421  						"id": "lastName2",
   422  						"tip": "Achternaam",
   423  						"tab": 2,
   424  						"value": "Doe",
   425  						"pos": [
   426  							160,
   427  							645
   428  						],
   429  						"width": 220,
   430  						"align": "left",
   431  						"border": {
   432  							"width":1,
   433  							"col": "Gray"
   434  						},
   435  						"label": {
   436  							"value": "Achternaam:",
   437  							"width": 110,
   438  							"gap": 10,
   439  							"align": "left",
   440  							"pos": "left"
   441  						}
   442  					},
   443  					{
   444  						"hide": false,
   445  						"id": "note2",
   446  						"tip": "Reden",
   447  						"tab": 12,
   448  						"multiline": true,
   449  						"value": "Dit is een voorbeeldtekst.\nDit is de volgende regel.",
   450  						"pos": [
   451  							160,
   452  							132
   453  						],
   454  						"width": 220,
   455  						"height":70,
   456  						"align": "left",
   457  						"border": {
   458  							"width":1,
   459  							"col": "Gray"
   460  						}
   461  					}
   462  				],
   463  				
   464  				"datefield": [
   465  					{
   466  						"hide": false,
   467  						"id": "dob2",
   468  						"tab": 3,
   469  						"value": "31.12.1999",
   470  						"pos": [
   471  							160,
   472  							625
   473  						],
   474  						"width": 70,
   475  						"border": {
   476  							"width":1,
   477  							"col": "Gray"
   478  						},
   479  						"label": {
   480  							"value": "Geboortedatum:",
   481  							"width": 110,
   482  							"gap": 10,
   483  							"align": "left",
   484  							"pos": "left"
   485   						}
   486  					}
   487  				],
   488  
   489  				"radiobuttongroup": [
   490  					{
   491  						"hide": false,
   492  						"id": "gender2",
   493  						"tip":  "Geslacht",
   494  						"tab": 4,
   495  						"value": "niet binair",
   496  						"orientation": "hor",
   497  						"pos": [
   498  							160,
   499  							605
   500  						],
   501  						"width": 12,
   502  						"buttons": {
   503  							"values": [
   504  								"vrouw",
   505  								"mannelijk",
   506  								"niet binair"
   507  							],
   508  							"label": {
   509  								"value": "dummy",
   510  								"width": 55,
   511  								"gap": 10,
   512  								"pos": "right"
   513  							}
   514  						},
   515  						"label": {
   516  							"value": "Geslacht:",
   517  							"width": 110,
   518  							"gap": 10,
   519  							"align": "left",
   520  							"pos": "left"
   521  						}
   522  					}
   523  				],
   524  
   525  				"checkbox": [
   526  					{
   527  						"hide": false,
   528  						"id": "cb21",
   529  						"tip": "Google zoeken",
   530  						"tab": 7,
   531  						"value": true,
   532  						"pos": [
   533  							30,
   534  							270
   535  						],
   536  						"width": 12,
   537  						"label": {
   538  							"value": "Google zoeken",
   539  							"width": 80,
   540  							"gap": 5,
   541  							"align": "left",
   542  							"pos": "right"
   543  						}
   544  					},
   545  					{
   546  						"hide": false,
   547  						"id": "cb22",
   548  						"tip": "Github-zoekopdracht",
   549  						"tab": 8,
   550  						"value": false,
   551  						"pos": [
   552  							30,
   553  							250
   554  						],
   555  						"width": 12,
   556  						"label": {
   557  							"value": "Github-zoekopdracht",
   558  							"width": 80,
   559  							"gap": 5,
   560  							"align": "left",
   561  							"pos": "right"
   562  						}
   563  					},
   564  					{
   565  						"hide": false,
   566  						"id": "cb23",
   567  						"tip": "Golang Wekelijks",
   568  						"tab": 9,
   569  						"value": false,
   570  						"pos": [
   571  							30,
   572  							230
   573  						],
   574  						"width": 12,
   575  						"label": {
   576  							"value": "Golang Wekelijks",
   577  							"width": 80,
   578  							"gap": 5,
   579  							"align": "left",
   580  							"pos": "right"
   581  						}
   582  					},
   583  					{
   584  						"hide": false,
   585  						"id": "cb24",
   586  						"tip": "Mede Gopher",
   587  						"tab": 10,
   588  						"value": false,
   589  						"pos": [
   590  							30,
   591  							210
   592  						],
   593  						"width": 12,
   594  						"label": {
   595  							"value": "Mede Gopher",
   596  							"width": 80,
   597  							"gap": 5,
   598  							"align": "left",
   599  							"pos": "right"
   600  						}
   601  					},
   602  					{
   603  						"hide": false,
   604  						"id": "cb25",
   605  						"tip": "Ander",
   606  						"tab": 11,
   607  						"value": false,
   608  						"pos": [
   609  							30,
   610  							190
   611  						],	
   612  						"width": 12,
   613  						"label": {
   614  							"value": "Ander:",
   615  							"width": 80,
   616  							"gap": 5,
   617  							"align": "left",
   618  							"pos": "right"
   619  						}
   620  					}
   621  				],
   622  
   623  				"listbox": [
   624  					{
   625  						"hide": false,
   626  						"id": "city21",
   627  						"tip": "Favoriete stad",
   628  						"tab": 5,
   629  						"options": [
   630  							"San Francisco",
   631  							"So Paulo",
   632  							"Wenen"
   633  						],
   634  						"multi": false,
   635  						"value": "San Francisco",
   636  						"pos": [
   637  							160,
   638  							530
   639  						],
   640  						"width": 220,
   641  						"height": 54,
   642  						"border": {
   643  							"width":1,
   644  							"col": "Gray"
   645  						},
   646  						"label": {
   647  							"value": "Favoriete stad:",
   648  							"width": 110,
   649  							"gap": 10,
   650  							"align": "left",
   651  							"pos": "left"
   652  						}
   653  					}
   654  				],
   655  
   656  				"combobox": [
   657  					{
   658  						"hide": false,
   659  						"id": "city22",
   660  						"tip": "Stad",
   661  						"tab": 6,
   662  						"options": [
   663  							"Amsterdam",
   664  							"Rotterdam",
   665  							"Utrecht"
   666  						],
   667  						"edit": false,
   668  						"value": "Amsterdam",
   669  						"pos": [
   670  							160,
   671  							500
   672  						],
   673  						"width": 220,
   674  						"border": {
   675  							"width":1,
   676  							"col": "Gray"
   677  						},
   678  						"label": {
   679  							"value": "Stad:",
   680  							"width": 110,
   681  							"gap": 10,
   682  							"align": "left",
   683  							"pos": "left"
   684  						}
   685  					}
   686  				],
   687  				
   688  				"text": [
   689  					{
   690  						"hide": false,
   691  						"value": "1) Vertel ons iets over jezelf:",
   692  						"pos": [
   693  							10,
   694  							690
   695  						],
   696  						"font": {
   697  							"name": "$label"
   698  						}
   699  					},
   700  					{
   701  						"hide": false,
   702  						"value": "2) Hoe heb je over pdfcpu gehoord:",
   703  						"pos": [
   704  							10,
   705  							290
   706  						],
   707  						"font": {
   708  							"name": "$label"
   709  						}
   710  					}
   711  				]
   712  			}
   713  		}
   714  	}
   715  }