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

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