github.com/pdfcpu/pdfcpu@v0.11.1/pkg/testdata/json/form/demo/romanian.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  		"input": {
    37  			"name": "Roboto-Regular",
    38  			"lang": "ro",
    39  			"script": "Latn",
    40  			"size": 12
    41  		},
    42  		"label": {
    43  			"name": "$input"
    44  		}
    45  	},
    46  	"margin": {
    47  		"width": 10
    48  	},
    49  	"header": {
    50  		"font": {
    51  			"name": "$label",
    52  			"size": 24,
    53  			"col": "#C00000"
    54  		},
    55  		"left": "$logo1",
    56  		"center": "Formular demonstrativ",
    57  		"right": "$logo2",
    58  		"height": 40,
    59  		"dx": 5,
    60  		"dy": 5,
    61  		"border": false
    62  	},
    63  	"footer": {
    64  		"font": {
    65  			"name": "Courier",
    66  			"size": 9
    67  		},
    68  		"left": "pdfcpu: %v\nCreated: %t",
    69  		"center": "Optimized for A.Reader\nPage %p of %P",
    70  		"right": "Source:\ntestdata/json/form/demo/romanian.json",
    71  		"height": 30,
    72  		"dx": 5,
    73  		"dy": 5,
    74  		"border": false
    75  	},
    76  	"pages": {
    77  		"1": {
    78  			"content": {
    79  				"textfield": [
    80  					{
    81  						"hide": false,
    82  						"debug": false,
    83  						"id": "firstName1",
    84  						"tip": "Nume",
    85  						"tab": 1,
    86  						"//default": "default name",
    87  						"pos": [
    88  							140,
    89  							665
    90  						],
    91  						"width": 205,
    92  						"align": "left",
    93  						"border": {
    94  							"width":1,
    95  							"col": "Gray"
    96  						},
    97  						"label": {
    98  							"value": "Nume:",
    99  							"width": 100,
   100  							"gap": 10,
   101  							"align": "left",
   102  							"pos": "left"
   103  						}
   104  					},
   105  					{
   106  						"hide": false,
   107  						"id": "lastName1",
   108  						"tip": "Numele de familie",
   109  						"tab": 2,
   110  						"pos": [
   111  							140,
   112  							645
   113  						],
   114  						"width": 205,
   115  						"align": "left",
   116  						"border": {
   117  							"width":1,
   118  							"col": "Gray"
   119  						},
   120  						"label": {
   121  							"value": "Numele de familie:",
   122  							"width": 100,
   123  							"gap": 10,
   124  							"align": "left",
   125  							"pos": "left"
   126  						}
   127  					},
   128  					{
   129  						"hide": false,
   130  						"id": "note1",
   131  						"tip": "Motiv",
   132  						"tab": 12,
   133  						"multiline": true,
   134  						"value": "Acesta este un exemplu de text.\nAcesta este următorul rând.",
   135  						"pos": [
   136  							140,
   137  							132
   138  						],
   139  						"width": 205,
   140  						"height":70,
   141  						"align": "left",
   142  						"border": {
   143  							"width":1,
   144  							"col": "Gray"
   145  						}
   146  					}
   147  				],
   148  				
   149  				"datefield": [
   150  					{
   151  						"hide": false,
   152  						"id": "dob1",
   153  						"tab": 3,
   154  						"format": "dd.mm.yyyy",
   155  						"//default": "01.01.2000",
   156  						"//value": "31.12.1999",
   157  						"pos": [
   158  							140,
   159  							625
   160  						],
   161  						"width": 70,
   162  						"border": {
   163  							"width":1,
   164  							"col": "Gray"
   165  						},
   166  						"label": {
   167  							"value": "Data de nastere:",
   168  							"width": 100,
   169  							"gap": 10,
   170  							"align": "left",
   171  							"pos": "left"
   172  						}
   173  					}
   174  				],
   175  
   176  				"radiobuttongroup": [
   177  					{
   178  						"hide": false,
   179  						"id": "gender1",
   180  						"tip": "Gen",
   181  						"tab": 4,
   182  						"orientation": "hor",
   183  						"//default": "femeie",
   184  						"//value": "masculin",
   185  						"pos": [
   186  							140,
   187  							605
   188  						],
   189  						"width": 12,
   190  						"buttons": {
   191  							"values": [
   192  								"femeie",
   193  								"masculin",
   194  								"non binar"
   195  							],
   196  							"label": {
   197  								"value": "dummy",
   198  								"width": 50,
   199  								"gap": 10,
   200  								"pos": "right"
   201  							}
   202  						},
   203  						"label": {
   204  							"value": "Gen:",
   205  							"width": 100,
   206  							"gap": 10,
   207  							"align": "left",
   208  							"pos": "left"
   209  						}
   210  					}
   211  				],
   212  
   213  				"checkbox": [
   214  					{
   215  						"hide": false,
   216  						"id": "cb11",
   217  						"tip": "Căutare Google",
   218  						"tab": 7,
   219  						"//default": true,
   220  						"value": false,
   221  						"pos": [
   222  							30,
   223  							270
   224  						],
   225  						"width": 12,
   226  						"label": {
   227  							"value": "Căutare Google",
   228  							"width": 80,
   229  							"gap": 5,
   230  							"align": "left",
   231  							"pos": "right"
   232  						}
   233  					},
   234  					{
   235  						"hide": false,
   236  						"id": "cb12",
   237  						"tip": "Căutare Github",
   238  						"tab": 8,
   239  						"value": false,
   240  						"pos": [
   241  							30,
   242  							250
   243  						],
   244  						"width": 12,
   245  						"label": {
   246  							"value": "Căutare Github",
   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": "Colega Gopher",
   276  						"tab": 10,
   277  						"value": false,
   278  						"pos": [
   279  							30,
   280  							210
   281  						],
   282  						"width": 12,
   283  						"label": {
   284  							"value": "Colega Gopher",
   285  							"width": 80,
   286  							"gap": 5,
   287  							"align": "left",
   288  							"pos": "right"
   289  						}
   290  					},
   291  					{
   292  						"hide": false,
   293  						"id": "cb15",
   294  						"tip": "Alte",
   295  						"tab": 11,
   296  						"value": false,
   297  						"pos": [
   298  							30,
   299  							190
   300  						],
   301  						"width": 12,
   302  						"label": {
   303  							"value": "Alte:",
   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": "Orașul preferat",
   317  						"tab": 5,
   318  						"options": [
   319  							"San Francisco",
   320  							"Sao Paulo",
   321  							"Viena"
   322  						],
   323  						"multi": true,
   324  						"//defaults": [
   325  							"Viena",
   326  							"Sao Paulo"
   327  						],
   328  						"//values": [
   329  							"San Francisco",
   330  							"Viena"
   331  						],
   332  						"pos": [
   333  							140,
   334  							530
   335  						],
   336  						"width": 205,
   337  						"height": 42,
   338  						"border": {
   339  							"width":1,
   340  							"col": "Gray"
   341  						},
   342  						"label": {
   343  							"value": "Orașul preferat:",
   344  							"width": 100,
   345  							"gap": 10,
   346  							"align": "left",
   347  							"pos": "left"
   348  						}
   349  					}
   350  				],
   351  
   352  				"combobox": [
   353  					{
   354  						"hide": false,
   355  						"id": "city12",
   356  						"tip": "Oraș",
   357  						"tab": 6,
   358  						"options": [
   359  							"Brașov",
   360  							"Bucharest",
   361  							"Iași"
   362  						],
   363  						"edit": false,
   364  						"//default": "Brașov",
   365  						"//value": "Bucharest",
   366  						"pos": [
   367  							140,
   368  							500
   369  						],
   370  						"width": 205,
   371  						"border": {
   372  							"width":1,
   373  							"col": "Gray"
   374  						},
   375  						"label": {
   376  							"value": "Oraș:",
   377  							"width": 100,
   378  							"gap": 10,
   379  							"align": "left",
   380  							"pos": "left"
   381  						}
   382  					}
   383  				],
   384  
   385  				"text": [
   386  					{	
   387  						"hide": false,
   388  						"value": "1) Vă rugăm să ne spuneți despre dvs:",
   389  						"pos": [
   390  							10,
   391  							690
   392  						],
   393  						"font": {
   394  							"name": "$label"
   395  						}
   396  					},
   397  					{
   398  						"hide": false,
   399  						"value": "2) Cum ai auzit despre pdfcpu:",
   400  						"pos": [
   401  							10,
   402  							290
   403  						],
   404  						"font": {
   405  							"name": "$label"
   406  						}
   407  					}
   408  				]
   409  			}
   410  		},
   411  		"2": {
   412  			"content": {
   413  				"textfield": [
   414  					{
   415  						"hide": false,
   416  						"id": "firstName2",
   417  						"tip": "Nume",
   418  						"tab": 1,
   419  						"value": "Jackie",
   420  						"pos": [
   421  							140,
   422  							665
   423  						],
   424  						"width": 205,
   425  						"align": "left",
   426  						"border": {
   427  							"width":1,
   428  							"col": "Gray"
   429  						},
   430  						"label": {
   431  							"value": "Nume:",
   432  							"width": 100,
   433  							"gap": 10,
   434  							"align": "left",
   435  							"pos": "left"
   436  						}
   437  					},
   438  					{
   439  						"hide": false,
   440  						"id": "lastName2",
   441  						"tip": "Numele de familie",
   442  						"tab": 2,
   443  						"value": "Doe",
   444  						"pos": [
   445  							140,
   446  							645
   447  						],
   448  						"width": 205,
   449  						"align": "left",
   450  						"border": {
   451  							"width":1,
   452  							"col": "Gray"
   453  						},
   454  						"label": {
   455  							"value": "Numele de familie:",
   456  							"width": 100,
   457  							"gap": 10,
   458  							"align": "left",
   459  							"pos": "left"
   460  						}
   461  					},
   462  					{
   463  						"hide": false,
   464  						"id": "note2",
   465  						"tip": "Motiv",
   466  						"tab": 12,
   467  						"multiline": true,
   468  						"value": "Acesta este un exemplu de text.\nAcesta este următorul rând.",
   469  						"pos": [
   470  							140,
   471  							132
   472  						],
   473  						"width": 205,
   474  						"height":70,
   475  						"align": "left",
   476  						"border": {
   477  							"width":1,
   478  							"col": "Gray"
   479  						}
   480  					}
   481  				],
   482  
   483  				"datefield": [
   484  					{
   485  						"hide": false,
   486  						"id": "dob2",
   487  						"tab": 3,
   488  						"value": "31.12.1999",
   489  						"pos": [
   490  							140,
   491  							625
   492  						],
   493  						"width": 70,
   494  						"border": {
   495  							"width":1,
   496  							"col": "Gray"
   497  						},
   498  						"label": {
   499  							"value": "Data de nastere:",
   500  							"width": 100,
   501  							"gap": 10,
   502  							"align": "left",
   503  							"pos": "left"
   504  						}
   505  					}
   506  				],
   507  
   508  				"radiobuttongroup": [
   509  					{
   510  						"hide": false,
   511  						"id": "gender2",
   512  						"tip": "gen",
   513  						"tab": 4,
   514  						"value": "non binar",
   515  						"orientation": "hor",
   516  						"pos": [
   517  							140,
   518  							605
   519  						],
   520  						"width": 12,
   521  						"buttons": {
   522  							"values": [
   523  								"femeie",
   524  								"masculin",
   525  								"non binar"
   526  							],
   527  							"label": {
   528  								"value": "dummy",
   529  								"width": 50,
   530  								"gap": 10,
   531  								"pos": "right"
   532  							}
   533  						},
   534  						"label": {
   535  							"value": "gen:",
   536  							"width": 100,
   537  							"gap": 10,
   538  							"align": "left",
   539  							"pos": "left"
   540  						}
   541  					}
   542  				],
   543  
   544  				"checkbox": [
   545  					{
   546  						"hide": false,
   547  						"id": "cb21",
   548  						"tip": "Căutare Google",
   549  						"tab": 7,
   550  						"value": true,
   551  						"pos": [
   552  							30,
   553  							270
   554  						],
   555  						"width": 12,
   556  						"label": {
   557  							"value": "Căutare Google",
   558  							"width": 80,
   559  							"gap": 5,
   560  							"align": "left",
   561  							"pos": "right"
   562  						}
   563  					},
   564  					{
   565  						"hide": false,
   566  						"id": "cb22",
   567  						"tip": "Căutare Github",
   568  						"tab": 8,
   569  						"value": false,
   570  						"pos": [
   571  							30,
   572  							250
   573  						],
   574  						"width": 12,
   575  						"label": {
   576  							"value": "Căutare Github",
   577  							"width": 80,
   578  							"gap": 5,
   579  							"align": "left",
   580  							"pos": "right"
   581  						}
   582  					},
   583  					{
   584  						"hide": false,
   585  						"id": "cb23",
   586  						"tip": "Golang Weekly",
   587  						"tab": 9,
   588  						"value": false,
   589  						"pos": [
   590  							30,
   591  							230
   592  						],
   593  						"width": 12,
   594  						"label": {
   595  							"value": "Golang Weekly",
   596  							"width": 80,
   597  							"gap": 5,
   598  							"align": "left",
   599  							"pos": "right"
   600  						}
   601  					},
   602  					{
   603  						"hide": false,
   604  						"id": "cb24",
   605  						"tip": "Colega Gopher",
   606  						"tab": 10,
   607  						"value": false,
   608  						"pos": [
   609  							30,
   610  							210
   611  						],
   612  						"width": 12,
   613  						"label": {
   614  							"value": "Colega Gopherr",
   615  							"width": 80,
   616  							"gap": 5,
   617  							"align": "left",
   618  							"pos": "right"
   619  						}
   620  					},
   621  					{
   622  						"hide": false,
   623  						"id": "cb25",
   624  						"tip": "Alte",
   625  						"tab": 11,
   626  						"value": false,
   627  						"pos": [
   628  							30,
   629  							190
   630  						],
   631  						"width": 12,
   632  						"label": {
   633  							"value": "Alte:",
   634  							"width": 80,
   635  							"gap": 5,
   636  							"align": "left",
   637  							"pos": "right"
   638  						}
   639  					}
   640  				],
   641  
   642  				"listbox": [
   643  					{
   644  						"hide": false,
   645  						"id": "city21",
   646  						"tip": "Orașul preferat",
   647  						"tab": 5,
   648  						"options": [
   649  							"San Francisco",
   650  							"Sao Paulo",
   651  							"Viena"
   652  						],
   653  						"multi": false,
   654  						"value": "San Francisco",
   655  						"pos": [
   656  							140,
   657  							530
   658  						],
   659  						"width": 205,
   660  						"height": 42,
   661  						"border": {
   662  							"width":1,
   663  							"col": "Gray"
   664  						},
   665  						"label": {
   666  							"value": "Orașul preferat:",
   667  							"width": 100,
   668  							"gap": 10,
   669  							"align": "left",
   670  							"pos": "left"
   671  						}
   672  					}
   673  				],
   674  
   675  				"combobox": [
   676  					{
   677  						"hide": false,
   678  						"id": "city22",
   679  						"tip": "Oraș",
   680  						"tab": 6,
   681  						"options": [
   682  							"Brașov",
   683  							"Bucharest",
   684  							"Iași"
   685  						],
   686  						"edit": false,
   687  						"value": "Bucharest",
   688  						"pos": [
   689  							140,
   690  							500
   691  						],
   692  						"width": 205,
   693  						"border": {
   694  							"width":1,
   695  							"col": "Gray"
   696  						},
   697  						"label": {
   698  							"value": "Oraș:",
   699  							"width": 100,
   700  							"gap": 10,
   701  							"align": "left",
   702  							"pos": "left"
   703  						}
   704  					}
   705  				],
   706  
   707  				"text": [
   708  					{	
   709  						"hide": false,
   710  						"value": "1) Vă rugăm să ne spuneți despre dvs:",
   711  						"pos": [
   712  							10,
   713  							690
   714  						],
   715  						"font": {
   716  							"name": "$label"
   717  						}
   718  					},
   719  					{
   720  						"hide": false,
   721  						"value": "2) Cum ai auzit despre pdfcpu:",
   722  						"pos": [
   723  							10,
   724  							290
   725  						],
   726  						"font": {
   727  							"name": "$label"
   728  						}
   729  					}
   730  				]
   731  			}
   732  		}
   733  	}
   734  }