github.com/pdfcpu/pdfcpu@v0.11.1/pkg/testdata/json/form/checkboxGroup.json (about)

     1  {
     2  	"paper": "A4P",
     3  	"crop": "10",
     4  	"origin": "LowerLeft",
     5  	"contentBox": true,
     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  	"fonts": {
    20  		"myCourierBold": {
    21  			"name": "Courier-Bold",
    22  			"size": 12
    23  		},
    24  		"label": {
    25  			"name": "Helvetica",
    26  			"size": 7,
    27  			"col": "Gray"
    28  		}
    29  	},
    30  	"margin": {
    31  		"width": 10
    32  	},
    33  	"header": {
    34  		"font": {
    35  			"name": "$myCourierBold",
    36  			"size": 24,
    37  			"col": "#C00000"
    38  		},
    39  		"left": "$logo1",
    40  		"center": "Checkbox Groups",
    41  		"right": "$logo2",
    42  		"height": 40,
    43  		"dx": 5,
    44  		"dy": 5,
    45  		"border": false
    46  	},
    47  	"footer": {
    48  		"font": {
    49  			"name": "Courier",
    50  			"size": 9
    51  		},
    52  		"left": "pdfcpu: %v\nCreated: %t",
    53  		"center": "Optimized for A.Reader\nPage %p of %P",
    54  		"right": "Source:\ntestdata/json/form/checkboxGroup.json",
    55  		"height": 30,
    56  		"dx": 5,
    57  		"dy": 5,
    58  		"border": false
    59  	},
    60  	"images": {
    61  		"logo1": {
    62  			"src": "$logo1",
    63  			"url": "https://pdfcpu.io",
    64  			"margin": {
    65  				"width": 5
    66  			}
    67  		},
    68  		"logo2": {
    69  			"src": "$logo2",
    70  			"url": "https://github.com/pdfcpu/pdfcpu",
    71  			"margin": {
    72  				"width": 5
    73  			}
    74  		}
    75  	},
    76  	"fieldgroups": {
    77  		"cbg": {
    78  			"hide": false,
    79  			"bgCol": "White",
    80  			"border": {
    81  				"width": 0,
    82  				"col": "Black",
    83  				"style": "round"
    84  			},
    85  			"padding": {
    86  				"width": 6 
    87  			}
    88  		}
    89  	},
    90  	"pages": {
    91  		"1": {
    92  			"bgcol": "LightGray",
    93  			"content": {
    94  				"guides": [
    95  					{
    96  						"pos": [
    97  							150,
    98  							670
    99  						]
   100  					}
   101  				],
   102  				"fieldGroup": [
   103  					{
   104  						"name": "$cbg",
   105  						"hide": false,
   106  						"checkbox": [
   107  							{
   108  								"hide": false,
   109  								"id": "llcheckbox1",
   110  								"tip": "tooltip",
   111  								"value": false,
   112  								"pos": [
   113  									150,
   114  									680
   115  								],
   116  								"width": 12,
   117  								"label": {
   118  									"value": "Check this:",
   119  									"width": 100,
   120  									"gap": 10,
   121  									"align": "left",
   122  									"pos": "left"
   123  								}
   124  							}
   125  						]
   126  					},
   127  					{
   128  						"name": "$cbg",
   129  						"hide": false,	
   130  						"checkbox": [
   131  							{
   132  								"hide": false,
   133  								"id": "llcheckbox2",
   134  								"value": true,
   135  								"pos": [
   136  									150,
   137  									650
   138  								],
   139  								"width": 12,
   140  								"label": {
   141  									"value": "Checked:",
   142  									"width": 100,
   143  									"gap": 10,
   144  									"align": "left",
   145  									"pos": "left"
   146  								}
   147  							}
   148  						]
   149  					},
   150  					{
   151  						"name": "$cbg",
   152  						"hide": false,	
   153  						"checkbox": [
   154  							{
   155  								"hide": false,	
   156  								"id": "lrcheckbox1",
   157  								"value": false,
   158  								"pos": [
   159  									150,
   160  									610
   161  								],
   162  								"width": 12,
   163  								"label": {
   164  									"value": "Check this:",
   165  									"width": 100,
   166  									"gap": 10,
   167  									"align": "right",
   168  									"pos": "left"
   169  								}
   170  							},
   171  							{
   172  								"hide": false,
   173  								"id": "lrcheckbox2",
   174  								"value": true,
   175  								"pos": [
   176  									150,
   177  									590
   178  								],
   179  								"width": 12,
   180  								"label": {
   181  									"value": "Checked:",
   182  									"width": 100,
   183  									"gap": 10,
   184  									"align": "right",
   185  									"pos": "left"
   186  								}
   187  							}
   188  						]
   189  					},
   190  					{
   191  						"name": "$cbg",
   192  						"hide": false,	
   193  						"checkbox": [
   194  							{
   195  								"id": "llcheckbox1b",
   196  								"value": false,
   197  								"pos": [
   198  									500,
   199  									676
   200  								],
   201  								"width": 18,
   202  								"label": {
   203  									"value": "Check this:",
   204  									"width": 180,
   205  									"gap": 10,
   206  									"align": "left",
   207  									"pos": "left",
   208  									"font": {
   209  										"name": "$label",
   210  										"size": 18
   211  									}
   212  								}
   213  							},
   214  							{
   215  								"hide": false,
   216  								"id": "llcheckbox2b",
   217  								"value": true,
   218  								"pos": [
   219  									500,
   220  									650
   221  								],
   222  								"width": 18,
   223  								"label": {
   224  									"value": "Checked:",
   225  									"width": 180,
   226  									"gap": 10,
   227  									"align": "left",
   228  									"pos": "left",
   229  									"font": {
   230  										"name": "$label",
   231  										"size": 18
   232  									}
   233  								}
   234  							}
   235  						]
   236  					},
   237  					{
   238  						"name": "$cbg",
   239  						"hide": false,	
   240  						"bgCol": "$DarkSeaGreen",
   241  						"border": {
   242  							"width": 5,
   243  							"col": "#00AA00",
   244  							"style": "round"
   245  						},
   246  						"checkbox": [
   247  							{
   248  								"hide": false,
   249  								"id": "lrcheckbox1b",
   250  								"value": false,
   251  								"pos": [
   252  									500,
   253  									605
   254  								],
   255  								"width": 18,
   256  								"label": {
   257  									"value": "Check this:",
   258  									"width": 100,
   259  									"gap": 10,
   260  									"align": "right",
   261  									"pos": "left",
   262  									"font": {
   263  										"name": "$label",
   264  										"size": 18
   265  									}
   266  								}
   267  							},
   268  							{
   269  								"hide": false,
   270  								"id": "lrcheckbox2b",
   271  								"value": true,
   272  								"pos": [
   273  									500,
   274  									584
   275  								],
   276  								"width": 18,
   277  								"label": {
   278  									"value": "Checked:",
   279  									"width": 100,
   280  									"gap": 10,
   281  									"align": "right",
   282  									"pos": "left",
   283  									"font": {
   284  										"name": "$label",
   285  										"size": 18
   286  									}
   287  								}
   288  							}
   289  						]
   290  					},
   291  					{
   292  						"name": "$cbg",
   293  						"hide": false,	
   294  						"bgCol": "$DarkSeaGreen",
   295  						"checkbox": [
   296  							{
   297  								"hide": false,
   298  								"id": "rlcheckbox1",
   299  								"value": false,
   300  								"pos": [
   301  									150,
   302  									500
   303  								],
   304  								"width": 12,
   305  								"label": {
   306  									"value": "Check this",
   307  									"width": 100,
   308  									"gap": 10,
   309  									"align": "left",
   310  									"pos": "right"
   311  								}
   312  							},
   313  							{
   314  								"hide": false,
   315  								"id": "rlcheckbox2",
   316  								"value": true,
   317  								"pos": [
   318  									150,
   319  									480
   320  								],
   321  								"width": 12,
   322  								"label": {
   323  									"value": "Checked",
   324  									"width": 100,
   325  									"gap": 10,
   326  									"align": "left",
   327  									"pos": "right"
   328  								}
   329  							}
   330  						]
   331  					},
   332  					{
   333  						"name": "$cbg",
   334  						"hide": false,
   335  						"checkbox": [
   336  							{
   337  								"hide": false,
   338  								"id": "rrcheckbox1",
   339  								"value": false,
   340  								"pos": [
   341  									150,
   342  									440
   343  								],
   344  								"width": 12,
   345  								"label": {
   346  									"value": "Check this",
   347  									"width": 100,
   348  									"gap": 10,
   349  									"align": "right",
   350  									"pos": "right"
   351  								}
   352  							},
   353  							{
   354  								"hide": false,
   355  								"id": "rrcheckbox2",
   356  								"value": true,
   357  								"pos": [
   358  									150,
   359  									420
   360  								],
   361  								"width": 12,
   362  								"label": {
   363  									"value": "Checked",
   364  									"width": 100,
   365  									"gap": 10,
   366  									"align": "right",
   367  									"pos": "right"
   368  								}
   369  							}
   370  						]
   371  					},
   372  					{
   373  						"name": "$cbg",
   374  						"hide": false,	
   375  						"checkbox": [
   376  							{
   377  								"hide": false,
   378  								"id": "rlcheckbox1b",
   379  								"value": false,
   380  								"pos": [
   381  									320,
   382  									506
   383  								],
   384  								"width": 18,
   385  								"label": {
   386  									"value": "Check this",
   387  									"width": 100,
   388  									"gap": 10,
   389  									"align": "left",
   390  									"pos": "right",
   391  									"font": {
   392  										"name": "$label",
   393  										"size": 18
   394  									}
   395  								}
   396  							},
   397  							{
   398  								"hide": false,
   399  								"id": "rlcheckbox2b",
   400  								"value": true,
   401  								"pos": [
   402  									320,
   403  									480
   404  								],
   405  								"width": 18,
   406  								"label": {
   407  									"value": "Checked",
   408  									"width": 100,
   409  									"gap": 10,
   410  									"align": "left",
   411  									"pos": "right",
   412  									"font": {
   413  										"name": "$label",
   414  										"size": 18
   415  									}
   416  								}
   417  							}
   418  						]
   419  					},
   420  					{
   421  						"name": "$cbg",
   422  						"hide": false,	
   423  						"checkbox": [
   424  							{
   425  								"hide": false,
   426  								"id": "rrcheckbox1b",
   427  								"value": false,
   428  								"pos": [
   429  									320,
   430  									440
   431  								],
   432  								"width": 18,
   433  								"label": {
   434  									"value": "Check this",
   435  									"width": 130,
   436  									"gap": 10,
   437  									"align": "right",
   438  									"pos": "right",
   439  									"font": {
   440  										"name": "$label",
   441  										"size": 18
   442  									}
   443  								}
   444  							},
   445  							{
   446  								"hide": false,
   447  								"id": "rrcheckbox2b",
   448  								"value": true,
   449  								"pos": [
   450  									320,
   451  									414
   452  								],
   453  								"width": 18,
   454  								"label": {
   455  									"value": "Checked",
   456  									"width": 130,
   457  									"gap": 10,
   458  									"align": "right",
   459  									"pos": "right",
   460  									"font": {
   461  										"name": "$label",
   462  										"size": 18
   463  									}
   464  								}
   465  							}
   466  						]
   467  					},
   468  					{
   469  						"name": "$cbg",
   470  						"hide": false,	
   471  						"checkbox": [
   472  							{
   473  								"hide": false,
   474  								"id": "tlcheckbox",
   475  								"value": false,
   476  								"pos": [
   477  									150,
   478  									310
   479  								],
   480  								"width": 12,
   481  								"label": {
   482  									"value": "Check this",
   483  									"width": 100,
   484  									"gap": 5,
   485  									"align": "left",
   486  									"pos": "top"
   487  								}
   488  							}
   489  						]
   490  					},
   491  					{
   492  						"name": "$cbg",
   493  						"hide": false,	
   494  						"checkbox": [
   495  							{
   496  								"hide": false,
   497  								"id": "tccheckbox",
   498  								"value": false,
   499  								"pos": [
   500  									150,
   501  									260
   502  								],
   503  								"width": 12,
   504  								"label": {
   505  									"value": "Check this",
   506  									"width": 100,
   507  									"gap": 5,
   508  									"align": "center",
   509  									"pos": "top"
   510  								}
   511  							}
   512  						]
   513  					},
   514  					{
   515  						"name": "$cbg",
   516  						"hide": false,	
   517  						"checkbox": [
   518  							{
   519  								"hide": false,
   520  								"id": "trcheckbox",
   521  								"value": false,
   522  								"pos": [
   523  									150,
   524  									210
   525  								],
   526  								"width": 12,
   527  								"label": {
   528  									"value": "Check this",
   529  									"width": 100,
   530  									"gap": 5,
   531  									"align": "right",
   532  									"pos": "top"
   533  								}
   534  							}
   535  						]
   536  					},
   537  					{
   538  						"name": "$cbg",
   539  						"hide": false,	
   540  						"checkbox": [
   541  							{
   542  								"hide": false,
   543  								"id": "tlcheckbox1",
   544  								"value": false,
   545  								"pos": [
   546  									410,
   547  									320
   548  								],
   549  								"width": 18,
   550  								"label": {
   551  									"value": "Check this",
   552  									"width": 100,
   553  									"gap": 5,
   554  									"align": "left",
   555  									"pos": "top",
   556  									"font": {
   557  										"name": "$label",
   558  										"size": 18
   559  									}
   560  								}
   561  							}
   562  						]
   563  					},
   564  					{
   565  						"name": "$cbg",
   566  						"hide": false,	
   567  						"checkbox": [
   568  							{
   569  								"hide": false,
   570  								"id": "tccheckbox1",
   571  								"value": false,
   572  								"pos": [
   573  									410,
   574  									260
   575  								],
   576  								"width": 18,
   577  								"label": {
   578  									"value": "Check this",
   579  									"width": 100,
   580  									"gap": 5,
   581  									"align": "center",
   582  									"pos": "top",
   583  									"font": {
   584  										"name": "$label",
   585  										"size": 18
   586  									}
   587  								}
   588  							}
   589  						]
   590  					},
   591  					{
   592  						"name": "$cbg",
   593  						"hide": false,	
   594  						"checkbox": [
   595  							{
   596  								"hide": false,
   597  								"id": "trcheckbox1",
   598  								"value": false,
   599  								"pos": [
   600  									410,
   601  									200
   602  								],
   603  								"width": 18,
   604  								"label": {
   605  									"value": "Check this",
   606  									"width": 100,
   607  									"gap": 5,
   608  									"align": "right",
   609  									"pos": "top",
   610  									"font": {
   611  										"name": "$label",
   612  										"size": 18
   613  									}
   614  								}
   615  							}
   616  						]
   617  					},
   618  					{
   619  						"name": "$cbg",
   620  						"hide": false,	
   621  						"checkbox": [
   622  							{
   623  								"hide": false,
   624  								"id": "blcheckbox",
   625  								"value": false,
   626  								"pos": [
   627  									150,
   628  									130
   629  								],
   630  								"width": 12,
   631  								"label": {
   632  									"value": "Check this",
   633  									"width": 100,
   634  									"gap": 5,
   635  									"align": "left",
   636  									"pos": "bottom"
   637  								}
   638  							}
   639  						]
   640  					},
   641  					{
   642  						"name": "$cbg",
   643  						"hide": false,	
   644  						"checkbox": [
   645  							{
   646  								"hide": false,
   647  								"id": "bccheckbox",
   648  								"value": false,
   649  								"pos": [
   650  									150,
   651  									80
   652  								],
   653  								"width": 12,
   654  								"label": {
   655  									"value": "Check this",
   656  									"width": 100,
   657  									"gap": 5,
   658  									"align": "center",
   659  									"pos": "bottom"
   660  								}
   661  							}
   662  						]
   663  					},
   664  					{
   665  						"name": "$cbg",
   666  						"hide": false,	
   667  						"checkbox": [
   668  							{
   669  								"hide": false,
   670  								"id": "brcheckbox",
   671  								"value": false,
   672  								"pos": [
   673  									150,
   674  									30
   675  								],
   676  								"width": 12,
   677  								"label": {
   678  									"value": "Check this",
   679  									"width": 100,
   680  									"gap": 5,
   681  									"align": "right",
   682  									"pos": "bottom"
   683  								}
   684  							}
   685  						]
   686  					},
   687  					{
   688  						"name": "$cbg",
   689  						"hide": false,	
   690  						"checkbox": [
   691  							{
   692  								"hide": false,
   693  								"id": "blcheckbox1",
   694  								"value": false,
   695  								"pos": [
   696  									410,
   697  									155
   698  								],
   699  								"width": 18,
   700  								"label": {
   701  									"value": "Check this",
   702  									"width": 100,
   703  									"gap": 5,
   704  									"align": "left",
   705  									"pos": "bottom",
   706  									"font": {
   707  										"name": "$label",
   708  										"size": 18
   709  									}
   710  								}
   711  							}
   712  						]
   713  					},
   714  					{
   715  						"name": "$cbg",
   716  						"hide": false,	
   717  						"checkbox": [
   718  							{
   719  								"hide": false,
   720  								"id": "bccheckbox1",
   721  								"value": false,
   722  								"pos": [
   723  									410,
   724  									95
   725  								],
   726  								"width": 18,
   727  								"label": {
   728  									"value": "Check this",
   729  									"width": 100,
   730  									"gap": 5,
   731  									"align": "center",
   732  									"pos": "bottom",
   733  									"font": {
   734  										"name": "$label",
   735  										"size": 18
   736  									}
   737  								}
   738  							}
   739  						]
   740  					},
   741  					{
   742  						"name": "$cbg",
   743  						"hide": false,
   744  						"checkbox": [
   745  							{
   746  								"hide": false,
   747  								"id": "brcheckbox1",
   748  								"value": false,
   749  								"pos": [
   750  									410,
   751  									35
   752  								],
   753  								"width": 18,
   754  								"label": {
   755  									"value": "Check this",
   756  									"width": 100,
   757  									"gap": 5,
   758  									"align": "right",
   759  									"pos": "bottom",
   760  									"font": {
   761  										"name": "$label",
   762  										"size": 18
   763  									}
   764  								}
   765  							}
   766  						]
   767  					}
   768  				],
   769  				"text": [
   770  					{
   771  						"value": "Checkbox with left label:",
   772  						"anchor": "topleft",
   773  						"font": {
   774  							"name": "$myCourierBold"
   775  						}
   776  					},
   777  					{
   778  						"value": "Checkbox with right label:",
   779  						"pos": [
   780  							0,
   781  							540
   782  						],
   783  						"font": {
   784  							"name": "$myCourierBold"
   785  						}
   786  					},
   787  					{
   788  						"value": "Checkbox with top label:",
   789  						"anchor": "left",
   790  						"font": {
   791  							"name": "$myCourierBold"
   792  						}
   793  					},
   794  					{
   795  						"value": "Checkbox with bottom label:",
   796  						"pos": [
   797  							0,
   798  							170
   799  						],
   800  						"font": {
   801  							"name": "$myCourierBold"
   802  						}
   803  					}
   804  				]
   805  			}
   806  		}
   807  	}
   808  }