github.com/pdfcpu/pdfcpu@v0.11.1/pkg/testdata/json/form/demo/chineseTrad.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": "UnifontMedium",
    37  			"lang": "zh",
    38  			"script": "HanT",
    39  			"size": 12
    40  		},
    41  		"label": {
    42  			"name": "$input"
    43  		}
    44  	},
    45  	"margin": {
    46  		"width": 10
    47  	},
    48  	"header": {
    49  		"font": {
    50  			"name": "$label",
    51  			"size": 24,
    52  			"col": "#C00000"
    53  		},
    54  		"left": "$logo1",
    55  		"center": "演示表格",
    56  		"right": "$logo2",
    57  		"height": 40,
    58  		"dx": 5,
    59  		"dy": 5,
    60  		"border": false
    61  	},
    62  	"footer": {
    63  		"font": {
    64  			"name": "Courier",
    65  			"size": 9
    66  		},
    67  		"left": "pdfcpu: %v\nCreated: %t",
    68  		"center": "Optimized for A.Reader\nPage %p of %P",
    69  		"right": "Source:\ntestdata/json/form/demo/chineseTrad.json",
    70  		"height": 30,
    71  		"dx": 5,
    72  		"dy": 5,
    73  		"border": false
    74  	},
    75  	"pages": {
    76  		"1": {
    77  			"content": {
    78  				"textfield": [
    79  					{
    80  						"hide": false,
    81  						"id": "firstName1",
    82  						"tip": "名",
    83  						"tab": 1,
    84  						"pos": [
    85  							120,
    86  							665
    87  						],
    88  						"width": 200,
    89  						"align": "left",
    90  						"border": {
    91  							"width":1,
    92  							"col": "Gray"
    93  						},
    94  						"label": {
    95  							"value": "名:",
    96  							"width": 80,
    97  							"gap": 10,
    98  							"align": "left",
    99  							"pos": "left"
   100  						}
   101  					},
   102  					{
   103  						"hide": false,
   104  						"id": "lastName",
   105  						"tip": "姓",
   106  						"tab": 2,
   107  						"pos": [
   108  							120,
   109  							645
   110  						],
   111  						"width": 200,
   112  						"align": "left",
   113  						"border": {
   114  							"width":1,
   115  							"col": "Gray"
   116  						},
   117  						"label": {
   118  							"value": "姓:",
   119  							"width": 80,
   120  							"gap": 10,
   121  							"align": "left",
   122  							"pos": "left"
   123  						}
   124  					},
   125  					{
   126  						"hide": false,
   127  						"id": "note1",
   128  						"tip": "原因",
   129  						"tab": 12,
   130  						"multiline": true,
   131  						"value": "这是一个示例文本。\n那是下一行。", 
   132  						"pos": [
   133  							120,
   134  							132
   135  						],
   136  						"width": 200,
   137  						"height":70,
   138  						"align": "left",
   139  						"border": {
   140  							"width":1,
   141  							"col": "Gray"
   142  						}
   143  					}
   144  				],
   145  				
   146  				"datefield": [
   147  					{
   148  						"hide": false,
   149  						"id": "dob1",
   150  						"tab": 3,
   151  						"format": "dd.mm.yyyy",
   152  						"pos": [
   153  							120,
   154  							625
   155  						],
   156  						"width": 70,
   157  						"border": {
   158  							"width":1,
   159  							"col": "Gray"
   160  						},
   161  						"label": {
   162  							"value": "出生日期:",
   163  							"width": 80,
   164  							"gap": 10,
   165  							"align": "left",
   166  							"pos": "left"
   167   						}
   168  					}
   169  				],
   170  
   171  				"radiobuttongroup": [
   172  					{
   173  						"hide": false,
   174  						"id": "gender1",
   175  						"tip": "性別",
   176  						"tab": 4,
   177  						"orientation": "hor",
   178  						"pos": [
   179  							120,
   180  							605
   181  						],
   182  						"width": 12,
   183  						"buttons": {
   184  							"values": [
   185  								"女性",
   186  								"男性",
   187  							 	"非二進制"
   188  							],
   189  							"label": {
   190  								"value": "dummy",
   191  								"width": 50,
   192  								"gap": 10,
   193  								"pos": "right"
   194  							}
   195  						},
   196  						"label": {
   197  							"value": "性別:",
   198  							"width": 80,
   199  							"gap": 10,
   200  							"align": "left",
   201  							"pos": "left"
   202  						}
   203  					}
   204  				],
   205  
   206  				"checkbox": [
   207  					{
   208  						"hide": false,
   209  						"id": "cb11",
   210  						"tip": "谷歌搜索",
   211  						"tab": 7,
   212  						"value": false,
   213  						"pos": [
   214  							30,
   215  							270
   216  						],
   217  						"width": 12,
   218  						"label": {
   219  							"value": "谷歌搜索:",
   220  							"width": 80,
   221  							"gap": 5,
   222  							"align": "left",
   223  							"pos": "right"
   224  						}
   225  					},
   226  					{
   227  						"hide": false,
   228  						"id": "cb12",
   229  						"tip": "Github 搜索",
   230  						"tab": 8,
   231  						"value": false,
   232  						"pos": [
   233  							30,
   234  							250
   235  						],
   236  						"width": 12,
   237  						"label": {
   238  							"value": "Github 搜索:",
   239  							"width": 80,
   240  							"gap": 5,
   241  							"align": "left",
   242  							"pos": "right"
   243  						}
   244  					},
   245  					{
   246  						"hide": false,
   247  						"id": "cb13",
   248  						"tip": "歌朗周刊",
   249  						"tab": 9,
   250  						"value": false,
   251  						"pos": [
   252  							30,
   253  							230
   254  						],
   255  						"width": 12,
   256  						"label": {
   257  							"value": "歌朗周刊:",
   258  							"width": 80,
   259  							"gap": 5,
   260  							"align": "left",
   261  							"pos": "right"
   262  						}
   263  					},
   264  					{
   265  						"hide": false,
   266  						"id": "cb14",
   267  						"tip": "同胞地鼠",
   268  						"tab": 10,
   269  						"value": false,
   270  						"pos": [
   271  							30,
   272  							210
   273  						],
   274  						"width": 12,
   275  						"label": {
   276  							"value": "同胞地鼠:",
   277  							"width": 80,
   278  							"gap": 5,
   279  							"align": "left",
   280  							"pos": "right"
   281  						}
   282  					},
   283  					{
   284  						"hide": false,
   285  						"id": "cb15",
   286  						"tip": "其他",
   287  						"tab": 11,
   288  						"value": false,
   289  						"pos": [
   290  							30,
   291  							190
   292  						],	
   293  						"width": 12,
   294  						"label": {
   295  							"value": "其他:",
   296  							"width": 80,
   297  							"gap": 5,
   298  							"align": "left",
   299  							"pos": "right"
   300  						}
   301  					}
   302  				],
   303  
   304  				"listbox": [
   305  					{
   306  						"hide": false,
   307  						"id": "city11",
   308  						"tip": "最喜歡的城市",
   309  						"tab": 5,
   310  						"options": [
   311  							"舊金山",
   312  							"聖保羅",
   313  							"維也納"
   314  						],
   315  						"multi": true,
   316  						"pos": [
   317  							120,
   318  							530
   319  						],
   320  						"width": 200,
   321  						"height": 44,
   322  						"border": {
   323  							"width":1,
   324  							"col": "Gray"
   325  						},
   326  						"label": {
   327  							"value": "最喜歡的城市:",
   328  							"width": 80,
   329  							"gap": 10,
   330  							"align": "left",
   331  							"pos": "left"
   332  						}
   333  					}
   334  				],
   335  
   336  				"combobox": [
   337  					{
   338  						"hide": false,
   339  						"id": "city12",
   340  						"tip": "城市",
   341  						"tab": 6,
   342  						"options": [
   343  							"香港",
   344  							"台北市",
   345  						 	"澳門"
   346  						],
   347  						"edit": false,
   348  						"pos": [
   349  							120,
   350  							500
   351  						],
   352  						"width": 200,
   353  						"border": {
   354  							"width":1,
   355  							"col": "Gray"
   356  						},
   357  						"label": {
   358  							"value": "城市:",
   359  							"width": 80,
   360  							"gap": 10,
   361  							"align": "left",
   362  							"pos": "left"
   363  						}
   364  					}
   365  				],
   366  				
   367  				"text": [
   368  					{
   369  						"hide": false,
   370  						"value": "1) 請介紹一下您自己:",
   371  						"pos": [
   372  							10,
   373  							690
   374  						],
   375  						"font": {
   376  							"name": "$label"
   377  						}
   378  					},
   379  					{
   380  						"hide": false,
   381  						"value": "2) 你是怎麼知道 pdfcpu 的:",
   382  						"pos": [
   383  							10,
   384  							290
   385  						],
   386  						"font": {
   387  							"name": "$label"
   388  						}
   389  					}
   390  				]
   391  			}
   392  		},
   393  		"2": {
   394  			"content": {
   395  				"textfield": [
   396  					{
   397  						"hide": false,
   398  						"id": "firstName2",
   399  						"tip": "名",
   400  						"tab": 1,
   401  						"value": "傑基",
   402  						"pos": [
   403  							120,
   404  							665
   405  						],
   406  						"width": 200,
   407  						"align": "left",
   408  						"border": {
   409  							"width":1,
   410  							"col": "Gray"
   411  						},
   412  						"label": {
   413  							"value": "名:",
   414  							"width": 80,
   415  							"gap": 10,
   416  							"align": "left",
   417  							"pos": "left"
   418  						}
   419  					},
   420  					{
   421  						"hide": false,
   422  						"id": "lastName2",
   423  						"tip": "姓",
   424  						"tab": 2,
   425  						"value": "美國能源部",
   426  						"pos": [
   427  							120,
   428  							645
   429  						],
   430  						"width": 200,
   431  						"align": "left",
   432  						"border": {
   433  							"width":1,
   434  							"col": "Gray"
   435  						},
   436  						"label": {
   437  							"value": "姓:",
   438  							"width": 80,
   439  							"gap": 10,
   440  							"align": "left",
   441  							"pos": "left"
   442  						}
   443  					},
   444  					{
   445  						"hide": false,
   446  						"id": "note2",
   447  						"tip": "原因",
   448  						"tab": 12,
   449  						"multiline": true,
   450  						"value": "这是一个示例文本。\n那是下一行。", 
   451  						"pos": [
   452  							120,
   453  							132
   454  						],
   455  						"width": 200,
   456  						"height":70,
   457  						"align": "left",
   458  						"border": {
   459  							"width":1,
   460  							"col": "Gray"
   461  						}
   462  					}
   463  				],
   464  				
   465  				"datefield": [
   466  					{
   467  						"hide": false,
   468  						"id": "dob2",
   469  						"tab": 3,
   470  						"value": "31.12.1999",
   471  						"pos": [
   472  							120,
   473  							625
   474  						],
   475  						"width": 70,
   476  						"border": {
   477  							"width":1,
   478  							"col": "Gray"
   479  						},
   480  						"label": {
   481  							"value": "出生日期:",
   482  							"width": 80,
   483  							"gap": 10,
   484  							"align": "left",
   485  							"pos": "left"
   486   						}
   487  					}
   488  				],
   489  
   490  				"radiobuttongroup": [
   491  					{
   492  						"hide": false,
   493  						"id": "gender2",
   494  						"tip": "性別",
   495  						"tab": 4,
   496  						"value": "非二進制",
   497  						"orientation": "hor",
   498  						"pos": [
   499  							120,
   500  							605
   501  						],
   502  						"width": 12,
   503  						"buttons": {
   504  							"values": [
   505  								"女性",
   506  								"男性",
   507  							 	"非二進制"
   508  							],
   509  							"label": {
   510  								"value": "dummy",
   511  								"width": 50,
   512  								"gap": 10,
   513  								"pos": "right"
   514  							}
   515  						},
   516  						"label": {
   517  							"value": "性別:",
   518  							"width": 80,
   519  							"gap": 10,
   520  							"align": "left",
   521  							"pos": "left"
   522  						}
   523  					}
   524  				],
   525  
   526  				"checkbox": [
   527  					{
   528  						"hide": false,
   529  						"id": "cb21",
   530  						"tip": "谷歌搜索",
   531  						"tab": 7,
   532  						"value": true,
   533  						"pos": [
   534  							30,
   535  							270
   536  						],
   537  						"width": 12,
   538  						"label": {
   539  							"value": "谷歌搜索:",
   540  							"width": 80,
   541  							"gap": 5,
   542  							"align": "left",
   543  							"pos": "right"
   544  						}
   545  					},
   546  					{
   547  						"hide": false,
   548  						"id": "cb22",
   549  						"tip": "Github 搜索",
   550  						"tab": 8,
   551  						"value": false,
   552  						"pos": [
   553  							30,
   554  							250
   555  						],
   556  						"width": 12,
   557  						"label": {
   558  							"value": "Github 搜索:",
   559  							"width": 80,
   560  							"gap": 5,
   561  							"align": "left",
   562  							"pos": "right"
   563  						}
   564  					},
   565  					{
   566  						"hide": false,
   567  						"id": "cb23",
   568  						"tip": "歌朗周刊",
   569  						"tab": 9,
   570  						"value": false,
   571  						"pos": [
   572  							30,
   573  							230
   574  						],
   575  						"width": 12,
   576  						"label": {
   577  							"value": "歌朗周刊:",
   578  							"width": 80,
   579  							"gap": 5,
   580  							"align": "left",
   581  							"pos": "right"
   582  						}
   583  					},
   584  					{
   585  						"hide": false,
   586  						"id": "cb24",
   587  						"tip": "同胞地鼠",
   588  						"tab": 10,
   589  						"value": false,
   590  						"pos": [
   591  							30,
   592  							210
   593  						],
   594  						"width": 12,
   595  						"label": {
   596  							"value": "同胞地鼠:",
   597  							"width": 80,
   598  							"gap": 5,
   599  							"align": "left",
   600  							"pos": "right"
   601  						}
   602  					},
   603  					{
   604  						"hide": false,
   605  						"id": "cb25",
   606  						"tip": "其他",
   607  						"tab": 11,
   608  						"value": false,
   609  						"pos": [
   610  							30,
   611  							190
   612  						],	
   613  						"width": 12,
   614  						"label": {
   615  							"value": "其他:",
   616  							"width": 80,
   617  							"gap": 5,
   618  							"align": "left",
   619  							"pos": "right"
   620  						}
   621  					}
   622  				],
   623  
   624  				"listbox": [
   625  					{
   626  						"hide": false,
   627  						"id": "city21",
   628  						"tip": "最喜歡的城市",
   629  						"tab": 5,
   630  						"options": [
   631  							"舊金山",
   632  							"聖保羅",
   633  							"維也納"
   634  						],
   635  						"multi": false,
   636  						"value": "舊金山",
   637  						"pos": [
   638  							120,
   639  							530
   640  						],
   641  						"width": 200,
   642  						"height": 44,
   643  						"border": {
   644  							"width":1,
   645  							"col": "Gray"
   646  						},
   647  						"label": {
   648  							"value": "最喜歡的城市:",
   649  							"width": 80,
   650  							"gap": 10,
   651  							"align": "left",
   652  							"pos": "left"
   653  						}
   654  					}
   655  				],
   656  
   657  				"combobox": [
   658  					{
   659  						"hide": false,
   660  						"id": "city22",
   661  						"tip": "城市",
   662  						"tab": 6,
   663  						"options": [
   664  							"香港",
   665  							"台北市",
   666  						 	"澳門"
   667  						],
   668  						"edit": false,
   669  						"value": "香港",
   670  						"pos": [
   671  							120,
   672  							500
   673  						],
   674  						"width": 200,
   675  						"border": {
   676  							"width":1,
   677  							"col": "Gray"
   678  						},
   679  						"label": {
   680  							"value": "城市:",
   681  							"width": 80,
   682  							"gap": 10,
   683  							"align": "left",
   684  							"pos": "left"
   685  						}
   686  					}
   687  				],
   688  				
   689  				"text": [
   690  					{
   691  						"hide": false,
   692  						"value": "1) 請介紹一下您自己:",
   693  						"pos": [
   694  							10,
   695  							690
   696  						],
   697  						"font": {
   698  							"name": "$label"
   699  						}
   700  					},
   701  					{
   702  						"hide": false,
   703  						"value": "2) 你是怎麼知道 pdfcpu 的:",
   704  						"pos": [
   705  							10,
   706  							290
   707  						],
   708  						"font": {
   709  							"name": "$label"
   710  						}
   711  					}
   712  				]
   713  			}
   714  		}
   715  	}
   716  }