github.com/pdfcpu/pdfcpu@v0.11.1/pkg/testdata/json/form/demo/norwegian.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  	"images": {
    20  		"logo1": {
    21  			"src": "$logo1",
    22  			"url": "https://pdfcpu.io",
    23  			"margin": {
    24  				"width": 5
    25  			}
    26  		},
    27  		"logo2": {
    28  			"src": "$logo2",
    29  			"url": "https://github.com/pdfcpu/pdfcpu",
    30  			"margin": {
    31  				"width": 5
    32  			}
    33  		}
    34  	},
    35  	"fonts": {
    36  		"myCourierBold": {
    37  			"name": "Courier-Bold",
    38  			"size": 12
    39  		},
    40  		"input": {
    41  			"name": "Helvetica",
    42  			"size": 12
    43  		},
    44  		"label": {
    45  			"name": "$input"
    46  		}
    47  	},
    48  	"margin": {
    49  		"width": 10
    50  	},
    51  	"header": {
    52  		"font": {
    53  			"name": "$myCourierBold",
    54  			"size": 24,
    55  			"col": "#C00000"
    56  		},
    57  		"left": "$logo1",
    58  		"center": "Demoskjema",
    59  		"right": "$logo2",
    60  		"height": 40,
    61  		"dx": 5,
    62  		"dy": 5,
    63  		"border": false
    64  	},
    65  	"footer": {
    66  		"font": {
    67  			"name": "Courier",
    68  			"size": 9
    69  		},
    70  		"left": "pdfcpu: %v\nCreated: %t",
    71  		"center": "Optimized for A.Reader\nPage %p of %P",
    72  		"right": "Source:\ntestdata/json/form/demo/norwegian.json",
    73  		"height": 30,
    74  		"dx": 5,
    75  		"dy": 5,
    76  		"border": false
    77  	},
    78  	"pages": {
    79  		"1": {
    80  			"content": {
    81  				"textfield": [
    82  					{
    83  						"hide": false,
    84  						"id": "firstName1",
    85  						"tip": "Fornavn",
    86  						"tab": 1,
    87  						"//default": "default name",
    88  						"pos": [
    89  							120,
    90  							665
    91  						],
    92  						"width": 200,
    93  						"align": "left",
    94  						"border": {
    95  							"width":1,
    96  							"col": "Gray"
    97  						},
    98  						"label": {
    99  							"value": "Fornavn:",
   100  							"width": 80,
   101  							"gap": 10,
   102  							"align": "left",
   103  							"pos": "left"
   104  						}
   105  					},
   106  					{
   107  						"hide": false,
   108  						"id": "lastName1",
   109  						"tip": "Etternavn",
   110  						"tab": 2,
   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": "Etternavn:",
   123  							"width": 80,
   124  							"gap": 10,
   125  							"align": "left",
   126  							"pos": "left"
   127  						}
   128  					},
   129  					{
   130  						"hide": false,
   131  						"id": "note1",
   132  						"tip": "Grunnen til",
   133  						"tab": 12,
   134  						"multiline": true,
   135  						"value": "Dette er en eksempeltekst.\nDette er neste linje.",
   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": "Fødselsdato:",
   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": "Kjønn",
   182  						"tab": 4,
   183  						"orientation": "hor",
   184  						"//default": "hunn",
   185  						"//value": "mann",
   186  						"pos": [
   187  							120,
   188  							605
   189  						],
   190  						"width": 12,
   191  						"buttons": {
   192  							"values": [
   193  								"hunn",
   194  								"mann",
   195  								"ikke-binær"
   196  							],
   197  							"label": {
   198  								"value": "dummy",
   199  								"width": 50,
   200  								"gap": 10,
   201  								"pos": "right"
   202  							}
   203  						},
   204  						"label": {
   205  							"value": "Kjønn:",
   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 søk",
   219  						"tab": 7,
   220  						"//default": true,
   221  						"value": false,
   222  						"pos": [
   223  							30,
   224  							270
   225  						],
   226  						"width": 12,
   227  						"label": {
   228  							"value": "Google søk",
   229  							"width": 80,
   230  							"gap": 5,
   231  							"align": "left",
   232  							"pos": "right"
   233  						}
   234  					},
   235  					{
   236  						"hide": false,
   237  						"id": "cb12",
   238  						"tip": "Github-søk",
   239  						"tab": 8,
   240  						"value": false,
   241  						"pos": [
   242  							30,
   243  							250
   244  						],
   245  						"width": 12,
   246  						"label": {
   247  							"value": "Github-søk",
   248  							"width": 80,
   249  							"gap": 5,
   250  							"align": "left",
   251  							"pos": "right"
   252  						}
   253  					},
   254  					{
   255  						"hide": false,
   256  						"id": "cb13",
   257  						"tip": "Golang Weekly",
   258  						"tab": 9,
   259  						"value": false,
   260  						"pos": [
   261  							30,
   262  							230
   263  						],
   264  						"width": 12,
   265  						"label": {
   266  							"value": "Golang Weekly",
   267  							"width": 80,
   268  							"gap": 5,
   269  							"align": "left",
   270  							"pos": "right"
   271  						}
   272  					},
   273  					{
   274  						"hide": false,
   275  						"id": "cb14",
   276  						"tip": "Fellow Gopher",
   277  						"tab": 10,
   278  						"value": false,
   279  						"pos": [
   280  							30,
   281  							210
   282  						],
   283  						"width": 12,
   284  						"label": {
   285  							"value": "Fellow Gopher",
   286  							"width": 80,
   287  							"gap": 5,
   288  							"align": "left",
   289  							"pos": "right"
   290  						}
   291  					},
   292  					{
   293  						"hide": false,
   294  						"id": "cb15",
   295  						"tip": "Annen",
   296  						"tab": 11,
   297  						"value": false,
   298  						"pos": [
   299  							30,
   300  							190
   301  						],
   302  						"width": 12,
   303  						"label": {
   304  							"value": "Annen:",
   305  							"width": 80,
   306  							"gap": 5,
   307  							"align": "left",
   308  							"pos": "right"
   309  						}
   310  					}
   311  				],
   312  
   313  				"listbox": [
   314  					{
   315  						"hide": false,
   316  						"id": "city11",
   317  						"tip": "Favoritt by",
   318  						"tab": 5,
   319  						"options": [
   320  							"San Fransisco",
   321  							"São Paulo",
   322  							"Wien"
   323  						],
   324  						"multi": true,
   325  						"//defaults": [
   326  							"Wien",
   327  							"São Paulo"
   328  						],
   329  						"//values": [
   330  							"San Fransisco",
   331  							"Wien"
   332  						],
   333  						"pos": [
   334  							120,
   335  							530
   336  						],
   337  						"width": 200,
   338  						"height": 42,
   339  						"border": {
   340  							"width":1,
   341  							"col": "Gray"
   342  						},
   343  						"label": {
   344  							"value": "Favoritt by:",
   345  							"width": 80,
   346  							"gap": 10,
   347  							"align": "left",
   348  							"pos": "left"
   349  						}
   350  					}
   351  				],
   352  
   353  				"combobox": [
   354  					{
   355  						"hide": false,
   356  						"id": "city12",
   357  						"tip": "By",
   358  						"tab": 6,
   359  						"options": [
   360  							"Arendal",
   361  							"Oslo",
   362  							"Trondheim"
   363  						],
   364  						"edit": false,
   365  						"//default": "Trondheim",
   366  						"//value": "Osloy",
   367  						"pos": [
   368  							120,
   369  							500
   370  						],
   371  						"width": 200,
   372  						"border": {
   373  							"width":1,
   374  							"col": "Gray"
   375  						},
   376  						"label": {
   377  							"value": "By:",
   378  							"width": 80,
   379  							"gap": 10,
   380  							"align": "left",
   381  							"pos": "left"
   382  						}
   383  					}
   384  				],
   385  
   386  				"text": [
   387  					{	
   388  						"hide": false,
   389  						"value": "1) Fortell oss gjerne om deg selv:",
   390  						"pos": [
   391  							10,
   392  							690
   393  						],
   394  						"font": {
   395  							"name": "$label"
   396  						}
   397  					},
   398  					{
   399  						"hide": false,
   400  						"value": "2) Hvordan hørte du om pdfcpu:",
   401  						"pos": [
   402  							10,
   403  							290
   404  						],
   405  						"font": {
   406  							"name": "$label"
   407  						}
   408  					}
   409  				]
   410  			}
   411  		},
   412  		"2": {
   413  			"content": {
   414  				"textfield": [
   415  					{
   416  						"hide": false,
   417  						"id": "firstName2",
   418  						"tip": "Fornavn",
   419  						"tab": 1,
   420  						"value": "Jackie",
   421  						"pos": [
   422  							120,
   423  							665
   424  						],
   425  						"width": 200,
   426  						"align": "left",
   427  						"border": {
   428  							"width":1,
   429  							"col": "Gray"
   430  						},
   431  						"label": {
   432  							"value": "Fornavn:",
   433  							"width": 80,
   434  							"gap": 10,
   435  							"align": "left",
   436  							"pos": "left"
   437  						}
   438  					},
   439  					{
   440  						"hide": false,
   441  						"id": "lastName2",
   442  						"tip": "Etternavn",
   443  						"tab": 2,
   444  						"value": "Doe",
   445  						"pos": [
   446  							120,
   447  							645
   448  						],
   449  						"width": 200,
   450  						"align": "left",
   451  						"border": {
   452  							"width":1,
   453  							"col": "Gray"
   454  						},
   455  						"label": {
   456  							"value": "Etternavn:",
   457  							"width": 80,
   458  							"gap": 10,
   459  							"align": "left",
   460  							"pos": "left"
   461  						}
   462  					},
   463  					{
   464  						"hide": false,
   465  						"id": "note2",
   466  						"tip": "Grunnen til",
   467  						"tab": 12,
   468  						"multiline": true,
   469  						"value": "Dette er en eksempeltekst.\nDette er neste linje.",
   470  						"pos": [
   471  							120,
   472  							132
   473  						],
   474  						"width": 200,
   475  						"height":70,
   476  						"align": "left",
   477  						"border": {
   478  							"width":1,
   479  							"col": "Gray"
   480  						}
   481  					}
   482  				],
   483  
   484  				"datefield": [
   485  					{
   486  						"hide": false,
   487  						"id": "dob2",
   488  						"tab": 3,
   489  						"value": "31.12.1999",
   490  						"pos": [
   491  							120,
   492  							625
   493  						],
   494  						"width": 70,
   495  						"border": {
   496  							"width":1,
   497  							"col": "Gray"
   498  						},
   499  						"label": {
   500  							"value": "Fødselsdato:",
   501  							"width": 80,
   502  							"gap": 10,
   503  							"align": "left",
   504  							"pos": "left"
   505  						}
   506  					}
   507  				],
   508  
   509  				"radiobuttongroup": [
   510  					{
   511  						"hide": false,
   512  						"id": "gender2",
   513  						"tip": "Kjønn",
   514  						"tab": 4,
   515  						"value": "ikke-binær",
   516  						"orientation": "hor",
   517  						"pos": [
   518  							120,
   519  							605
   520  						],
   521  						"width": 12,
   522  						"buttons": {
   523  							"values": [
   524  								"hunn",
   525  								"mann",
   526  								"ikke-binær"
   527  							],
   528  							"label": {
   529  								"value": "dummy",
   530  								"width": 50,
   531  								"gap": 10,
   532  								"pos": "right"
   533  							}
   534  						},
   535  						"label": {
   536  							"value": "Kjønn:",
   537  							"width": 80,
   538  							"gap": 10,
   539  							"align": "left",
   540  							"pos": "left"
   541  						}
   542  					}
   543  				],
   544  
   545  				"checkbox": [
   546  					{
   547  						"hide": false,
   548  						"id": "cb21",
   549  						"tip": "Google søk",
   550  						"tab": 7,
   551  						"value": true,
   552  						"pos": [
   553  							30,
   554  							270
   555  						],
   556  						"width": 12,
   557  						"label": {
   558  							"value": "Google søk",
   559  							"width": 80,
   560  							"gap": 5,
   561  							"align": "left",
   562  							"pos": "right"
   563  						}
   564  					},
   565  					{
   566  						"hide": false,
   567  						"id": "cb22",
   568  						"tip": "Github-søk",
   569  						"tab": 8,
   570  						"value": false,
   571  						"pos": [
   572  							30,
   573  							250
   574  						],
   575  						"width": 12,
   576  						"label": {
   577  							"value": "Github-søk",
   578  							"width": 80,
   579  							"gap": 5,
   580  							"align": "left",
   581  							"pos": "right"
   582  						}
   583  					},
   584  					{
   585  						"hide": false,
   586  						"id": "cb23",
   587  						"tip": "Golang Weekly",
   588  						"tab": 9,
   589  						"value": false,
   590  						"pos": [
   591  							30,
   592  							230
   593  						],
   594  						"width": 12,
   595  						"label": {
   596  							"value": "Golang Weekly",
   597  							"width": 80,
   598  							"gap": 5,
   599  							"align": "left",
   600  							"pos": "right"
   601  						}
   602  					},
   603  					{
   604  						"hide": false,
   605  						"id": "cb24",
   606  						"tip": "Fellow Gopher",
   607  						"tab": 10,
   608  						"value": false,
   609  						"pos": [
   610  							30,
   611  							210
   612  						],
   613  						"width": 12,
   614  						"label": {
   615  							"value": "Fellow Gopher",
   616  							"width": 80,
   617  							"gap": 5,
   618  							"align": "left",
   619  							"pos": "right"
   620  						}
   621  					},
   622  					{
   623  						"hide": false,
   624  						"id": "cb25",
   625  						"tip": "Annen",
   626  						"tab": 11,
   627  						"value": false,
   628  						"pos": [
   629  							30,
   630  							190
   631  						],
   632  						"width": 12,
   633  						"label": {
   634  							"value": "Annen:",
   635  							"width": 80,
   636  							"gap": 5,
   637  							"align": "left",
   638  							"pos": "right"
   639  						}
   640  					}
   641  				],
   642  
   643  				"listbox": [
   644  					{
   645  						"hide": false,
   646  						"id": "city21",
   647  						"tip": "Favoritt by",
   648  						"tab": 5,
   649  						"options": [
   650  							"San Fransisco",
   651  							"São Paulo",
   652  							"Wien"
   653  						],
   654  						"multi": false,
   655  						"value": "San Fransisco",
   656  						"pos": [
   657  							120,
   658  							530
   659  						],
   660  						"width": 200,
   661  						"height": 42,
   662  						"border": {
   663  							"width":1,
   664  							"col": "Gray"
   665  						},
   666  						"label": {
   667  							"value": "Favoritt by:",
   668  							"width": 80,
   669  							"gap": 10,
   670  							"align": "left",
   671  							"pos": "left"
   672  						}
   673  					}
   674  				],
   675  
   676  				"combobox": [
   677  					{
   678  						"hide": false,
   679  						"id": "city22",
   680  						"tip": "By",
   681  						"tab": 6,
   682  						"options": [
   683  							"Arendal",
   684  							"Oslo",
   685  							"Trondheim"
   686  						],
   687  						"edit": false,
   688  						"value": "Oslo",
   689  						"pos": [
   690  							120,
   691  							500
   692  						],
   693  						"width": 200,
   694  						"border": {
   695  							"width":1,
   696  							"col": "Gray"
   697  						},
   698  						"label": {
   699  							"value": "By:",
   700  							"width": 80,
   701  							"gap": 10,
   702  							"align": "left",
   703  							"pos": "left"
   704  						}
   705  					}
   706  				],
   707  
   708  				"text": [
   709  					{	
   710  						"hide": false,
   711  						"value": "1) Fortell oss gjerne om deg selv:",
   712  						"pos": [
   713  							10,
   714  							690
   715  						],
   716  						"font": {
   717  							"name": "$label"
   718  						}
   719  					},
   720  					{
   721  						"hide": false,
   722  						"value": "2) Hvordan hørte du om pdfcpu:",
   723  						"pos": [
   724  							10,
   725  							290
   726  						],
   727  						"font": {
   728  							"name": "$label"
   729  						}
   730  					}
   731  				]
   732  			}
   733  		}
   734  	}
   735  }