github.com/pdfcpu/pdfcpu@v0.11.1/pkg/testdata/json/form/demo/persian.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": "fa",
    38  			"script": "Arab",
    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  		"rtl": true,
    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/persian.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  						"id": "firstName1",
    83  						"tip": "نام کوچک",
    84  						"tab": 1,
    85  						"pos": [
    86  							175,
    87  							665
    88  						],
    89  						"width": 240,
    90  						"align": "right",
    91  						"rtl": true,
    92  						"border": {
    93  							"width":1,
    94  							"col": "Gray"
    95  						},
    96  						"label": {
    97  							"value": "نام کوچک:",
    98  							"width": 95,
    99  							"gap": 10,
   100  							"align": "right",
   101  							"pos": "right",
   102  							"rtl": true
   103  						}
   104  					},
   105  					{
   106  						"hide": false,
   107  						"id": "lastName1",
   108  						"tip": "نام خانوادگی",
   109  						"tab": 2,
   110  						"pos": [
   111  							175,
   112  							645
   113  						],
   114  						"width": 240,
   115  						"align": "right",
   116  						"rtl": true,
   117  						"border": {
   118  							"width":1,
   119  							"col": "Gray"
   120  						},
   121  						"label": {
   122  							"value": "نام خانوادگی:",
   123  							"width": 95,
   124  							"gap": 10,
   125  							"align": "right",
   126  							"pos": "right",
   127  							"rtl": true
   128  						}
   129  					},
   130  					{
   131  						"hide": false,
   132  						"id": "note1",
   133  						"tip": "دلیل",
   134  						"tab": 12,
   135  						"multiline": true,
   136  						"value": "این یک متن نمونه است.\nاین خط بعدی است.",
   137  						"pos": [
   138  							175,
   139  							132
   140  						],
   141  						"width": 240,
   142  						"height":70,
   143  						"align": "right",
   144  						"rtl": true,
   145  						"border": {
   146  							"width":1,
   147  							"col": "Gray"
   148  						}
   149  					}
   150  				],
   151  				
   152  				"datefield": [
   153  					{
   154  						"hide": false,
   155  						"id": "dob1",
   156  						"tab": 3,
   157  						"format": "yyyy/mm/dd",
   158  						"pos": [
   159  							345,
   160  							625
   161  						],
   162  						"width": 70,
   163  						"border": {
   164  							"width":1,
   165  							"col": "Gray"
   166  						},
   167  						"label": {
   168  							"value": "تاریخ تولد:",
   169  							"width": 94,
   170  							"gap": 10,
   171  							"align": "right",
   172  							"pos": "right",
   173  							"rtl": true
   174   						}
   175  					}
   176  				],
   177  
   178  				"radiobuttongroup": [
   179  					{
   180  						"hide": false,
   181  						"id": "gender1",
   182  						"tip": "جنسیت",
   183  						"tab": 4,
   184  						"orientation": "hor",
   185  						"pos": [
   186  							175,
   187  							605
   188  						],
   189  						"width": 12,
   190  						"buttons": {
   191  							"values": [
   192  								"غیر باینری",
   193  								"نر",
   194  								"زن"
   195  							],
   196  							"label": {
   197  								"value": "dummy",
   198  								"width": 70,
   199  								"gap": 10,
   200  								"pos": "left",
   201  								"rtl": true
   202  							}
   203  						},
   204  						"label": {
   205  							"value": "جنسیت:",
   206  							"width": 90,
   207  							"gap": 10,
   208  							"align": "right",
   209  							"pos": "right",
   210  							"rtl": true
   211  						}
   212  					}
   213  				],
   214  
   215  				"checkbox": [
   216  					{
   217  						"hide": false,
   218  						"id": "cb11",
   219  						"tip": "جستجوی گوگل",
   220  						"tab": 7,
   221  						"value": false,
   222  						"pos": [
   223  							508,
   224  							270
   225  						],
   226  						"width": 12,
   227  						"label": {
   228  							"value": "جستجوی گوگل",
   229  							"width": 80,
   230  							"gap": 5,
   231  							"align": "right",
   232  							"pos": "left",
   233  							"rtl": true
   234  						}
   235  					},
   236  					{
   237  						"hide": false,
   238  						"id": "cb12",
   239  						"tip": "جستجوی buhtiG",
   240  						"tab": 8,
   241  						"value": false,
   242  						"pos": [
   243  							508,
   244  							250
   245  						],
   246  						"width": 12,
   247  						"label": {
   248  							"value": "جستجوی buhtiG",
   249  							"width": 80,
   250  							"gap": 5,
   251  							"align": "right",
   252  							"pos": "left",
   253  							"rtl": true
   254  						}
   255  					},
   256  					{
   257  						"hide": false,
   258  						"id": "cb13",
   259  						"tip": "هفته نامه گولنگ",
   260  						"tab": 9,
   261  						"value": false,
   262  						"pos": [
   263  							508,
   264  							230
   265  						],
   266  						"width": 12,
   267  						"label": {
   268  							"value": "هفته نامه گولنگ",
   269  							"width": 80,
   270  							"gap": 5,
   271  							"align": "right",
   272  							"pos": "left",
   273  							"rtl": true
   274  						}
   275  					},
   276  					{
   277  						"hide": false,
   278  						"id": "cb14",
   279  						"tip": "همکار گوفر",
   280  						"tab": 10,
   281  						"value": false,
   282  						"pos": [
   283  							508,
   284  							210
   285  						],
   286  						"width": 12,
   287  						"label": {
   288  							"value": "همکار گوفر",
   289  							"width": 80,
   290  							"gap": 5,
   291  							"align": "right",
   292  							"pos": "left",
   293  							"rtl": true
   294  						}
   295  					},
   296  					{
   297  						"hide": false,
   298  						"id": "cb15",
   299  						"tip": "دیگر",
   300  						"tab": 11,
   301  						"value": false,
   302  						"pos": [
   303  							508,
   304  							190
   305  						],	
   306  						"width": 12,
   307  						"label": {
   308  							"value": "دیگر:",
   309  							"width": 80,
   310  							"gap": 5,
   311  							"align": "right",
   312  							"pos": "left",
   313  							"rtl": true
   314  						}
   315  					}
   316  				],
   317  
   318  				"listbox": [
   319  					{
   320  						"hide": false,
   321  						"id": "city11",
   322  						"tip": "شهر مورد علاقه",
   323  						"tab": 5,
   324  						"options": [
   325  							"سانفرانسیسکو",
   326  							"سائو پائولو",
   327  							"وین"
   328  						],
   329  						"multi": false,
   330  						"pos": [
   331  							175,
   332  							530
   333  						],
   334  						"width": 240,
   335  						"height": 44,
   336  						"align": "right",
   337  						"rtl": true,
   338  						"border": {
   339  							"width":1,
   340  							"col": "Gray"
   341  						},
   342  						"label": {
   343  							"value": "شهر مورد علاقه:",
   344  							"width": 90,
   345  							"gap": 10,
   346  							"align": "right",
   347  							"pos": "right",
   348  							"rtl": true
   349  						}
   350  					}
   351  				],
   352  
   353  				"combobox": [
   354  					{
   355  						"hide": false,
   356  						"id": "city12",
   357  						"tip": "شهر",
   358  						"tab": 6,
   359  						"options": [
   360  							"تهران",
   361  							"مشهد",
   362  							"کرمانشاه"
   363  						],
   364  						"edit": false,
   365  						"pos": [
   366  							175,
   367  							504
   368  						],
   369  						"width": 240,
   370  						"align": "right",
   371  						"rtl": true,
   372  						"border": {
   373  							"width":1,
   374  							"col": "Gray"
   375  						},
   376  						"label": {
   377  							"value": "شهر:",
   378  							"width": 90,
   379  							"gap": 10,
   380  							"align": "right",
   381  							"pos": "right",
   382  							"rtl":true
   383  						}
   384  					}
   385  				],
   386  				
   387  				"text": [
   388  					{
   389  						"hide": false,
   390  						"value": "1. لطفاً از خودتان برای ما بگویید:",
   391  						"pos": [
   392  							340,
   393  							690
   394  						],
   395  						"font": {
   396  							"name": "$label"
   397  						},
   398  						"rtl": true
   399  					},
   400  					{
   401  						"hide": false,
   402  						"value": "2. چگونه در مورد upcfdp شنیدید?",
   403  						"pos": [
   404  							350,
   405  							290
   406  						],
   407  						"font": {
   408  							"name": "$label"
   409  						},
   410  						"rtl": true
   411  					}
   412  				]
   413  			}
   414  		},
   415  		"2": {
   416  			"content": {
   417  				"textfield": [
   418  					{
   419  						"hide": false,
   420  						"id": "firstName2",
   421  						"tip": "نام کوچک",
   422  						"tab": 1,
   423  						"value": "جکی",
   424  						"pos": [
   425  							175,
   426  							665
   427  						],
   428  						"width": 240,
   429  						"align": "right",
   430  						"rtl": true,
   431  						"border": {
   432  							"width":1,
   433  							"col": "Gray"
   434  						},
   435  						"label": {
   436  							"value": "نام کوچک:",
   437  							"width": 95,
   438  							"gap": 10,
   439  							"align": "right",
   440  							"pos": "right",
   441  							"rtl": true
   442  						}
   443  					},
   444  					{
   445  						"hide": false,
   446  						"id": "lastName2",
   447  						"tip": "نام خانوادگی",
   448  						"tab": 2,
   449  						"value": "گوزن",
   450  						"pos": [
   451  							175,
   452  							645
   453  						],
   454  						"width": 240,
   455  						"align": "right",
   456  						"rtl": true,
   457  						"border": {
   458  							"width":1,
   459  							"col": "Gray"
   460  						},
   461  						"label": {
   462  							"value": "نام خانوادگی:",
   463  							"width": 95,
   464  							"gap": 10,
   465  							"align": "right",
   466  							"pos": "right",
   467  							"rtl": true
   468  						}
   469  					},
   470  					{
   471  						"hide": false,
   472  						"id": "note2",
   473  						"tip": "دلیل",
   474  						"tab": 12,
   475  						"multiline": true,
   476  						"value": "این یک متن نمونه است.\nاین خط بعدی است.",
   477  						"pos": [
   478  							175,
   479  							132
   480  						],
   481  						"width": 240,
   482  						"height":70,
   483  						"align": "right",
   484  						"rtl": true,
   485  						"border": {
   486  							"width":1,
   487  							"col": "Gray"
   488  						}
   489  					}
   490  				],
   491  				
   492  				"datefield": [
   493  					{
   494  						"hide": false,
   495  						"id": "dob2",
   496  						"tab": 3,
   497  						"value": "1999.12.31",
   498  						"pos": [
   499  							345,
   500  							625
   501  						],
   502  						"width": 70,
   503  						"border": {
   504  							"width":1,
   505  							"col": "Gray"
   506  						},
   507  						"label": {
   508  							"value": "تاریخ تولد:",
   509  							"width": 94,
   510  							"gap": 10,
   511  							"align": "right",
   512  							"pos": "right",
   513  							"rtl": true
   514   						}
   515  					}
   516  				],
   517  
   518  				"radiobuttongroup": [
   519  					{
   520  						"hide": false,
   521  						"id": "gender2",
   522  						"tip": "جنسیت",
   523  						"tab": 4,
   524  						"value": "غیر باینری",
   525  						"orientation": "hor",
   526  						"pos": [
   527  							175,
   528  							605
   529  						],
   530  						"width": 12,
   531  						"buttons": {
   532  							"values": [
   533  								"غیر باینری",
   534  								"نر",
   535  								"زن"
   536  							],
   537  							"label": {
   538  								"value": "dummy",
   539  								"width": 70,
   540  								"gap": 10,
   541  								"pos": "left",
   542  								"rtl": true
   543  							}
   544  						},
   545  						"label": {
   546  							"value": "جنسیت:",
   547  							"width": 90,
   548  							"gap": 10,
   549  							"align": "right",
   550  							"pos": "right",
   551  							"rtl": true
   552  						}
   553  					}
   554  				],
   555  
   556  				"checkbox": [
   557  					{
   558  						"hide": false,
   559  						"id": "cb21",
   560  						"tip": "جستجوی گوگل",
   561  						"tab": 7,
   562  						"value": true,
   563  						"pos": [
   564  							508,
   565  							270
   566  						],
   567  						"width": 12,
   568  						"label": {
   569  							"value": "جستجوی گوگل",
   570  							"width": 80,
   571  							"gap": 5,
   572  							"align": "right",
   573  							"pos": "left",
   574  							"rtl": true
   575  						}
   576  					},
   577  					{
   578  						"hide": false,
   579  						"id": "cb22",
   580  						"tip": "جستجوی buhtiG",
   581  						"tab": 8,
   582  						"value": false,
   583  						"pos": [
   584  							508,
   585  							250
   586  						],
   587  						"width": 12,
   588  						"label": {
   589  							"value": "جستجوی buhtiG",
   590  							"width": 80,
   591  							"gap": 5,
   592  							"align": "right",
   593  							"pos": "left",
   594  							"rtl": true
   595  						}
   596  					},
   597  					{
   598  						"hide": false,
   599  						"id": "cb23",
   600  						"tip": "هفته نامه گولنگ",
   601  						"tab": 9,
   602  						"value": false,
   603  						"pos": [
   604  							508,
   605  							230
   606  						],
   607  						"width": 12,
   608  						"label": {
   609  							"value": "هفته نامه گولنگ",
   610  							"width": 80,
   611  							"gap": 5,
   612  							"align": "right",
   613  							"pos": "left",
   614  							"rtl": true
   615  						}
   616  					},
   617  					{
   618  						"hide": false,
   619  						"id": "cb24",
   620  						"tip": "همکار گوفر",
   621  						"tab": 10,
   622  						"value": false,
   623  						"pos": [
   624  							508,
   625  							210
   626  						],
   627  						"width": 12,
   628  						"label": {
   629  							"value": "همکار گوفر",
   630  							"width": 80,
   631  							"gap": 5,
   632  							"align": "right",
   633  							"pos": "left",
   634  							"rtl": true
   635  						}
   636  					},
   637  					{
   638  						"hide": false,
   639  						"id": "cb25",
   640  						"tip": "دیگر",
   641  						"tab": 11,
   642  						"value": false,
   643  						"pos": [
   644  							508,
   645  							190
   646  						],	
   647  						"width": 12,
   648  						"label": {
   649  							"value": "دیگر:",
   650  							"width": 80,
   651  							"gap": 5,
   652  							"align": "right",
   653  							"pos": "left",
   654  							"rtl": true
   655  						}
   656  					}
   657  				],
   658  
   659  				"listbox": [
   660  					{
   661  						"hide": false,
   662  						"id": "city21",
   663  						"tip": "شهر مورد علاقه",
   664  						"tab": 5,
   665  						"options": [
   666  							"سانفرانسیسکو",
   667  							"سائو پائولو",
   668  							"وین"
   669  						],
   670  						"multi": false,
   671  						"value": "سانفرانسیسکو",
   672  						"pos": [
   673  							175,
   674  							530
   675  						],
   676  						"width": 240,
   677  						"height": 44,
   678  						"align": "right",
   679  						"rtl": true,
   680  						"border": {
   681  							"width":1,
   682  							"col": "Gray"
   683  						},
   684  						"label": {
   685  							"value": "شهر مورد علاقه:",
   686  							"width": 90,
   687  							"gap": 10,
   688  							"align": "right",
   689  							"pos": "right",
   690  							"rtl": true
   691  						}
   692  					}
   693  				],
   694  
   695  				"combobox": [
   696  					{
   697  						"hide": false,
   698  						"id": "city22",
   699  						"tip": "شهر",
   700  						"tab": 6,
   701  						"options": [
   702  							"تهران",
   703  							"مشهد",
   704  							"کرمانشاه"
   705  						],
   706  						"edit": false,
   707  						"value": "مشهد",
   708  						"pos": [
   709  							175,
   710  							504
   711  						],
   712  						"width": 240,
   713  						"align": "right",
   714  						"rtl": true,
   715  						"border": {
   716  							"width":1,
   717  							"col": "Gray"
   718  						},
   719  						"label": {
   720  							"value": "شهر:",
   721  							"width": 90,
   722  							"gap": 10,
   723  							"align": "right",
   724  							"pos": "right",
   725  							"rtl":true
   726  						}
   727  					}
   728  				],
   729  				
   730  				"text": [
   731  					{
   732  						"hide": false,
   733  						"value": "1. لطفاً از خودتان برای ما بگویید:",
   734  						"pos": [
   735  							340,
   736  							690
   737  						],
   738  						"font": {
   739  							"name": "$label"
   740  						},
   741  						"rtl": true
   742  					},
   743  					{
   744  						"hide": false,
   745  						"value": "2. چگونه در مورد upcfdp شنیدید?",
   746  						"pos": [
   747  							350,
   748  							290
   749  						],
   750  						"font": {
   751  							"name": "$label"
   752  						},
   753  						"rtl": true
   754  					}
   755  				]
   756  			}
   757  		}
   758  	}
   759  }