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