github.com/pdfcpu/pdfcpu@v0.11.1/pkg/testdata/json/create/flow/updateAnyPage1.json (about)

     1  {
     2  	"paper": "A4P",
     3  	"crop": "10",
     4  	"origin": "LowerLeft",
     5  	"debug": true,
     6  	"contentBox": false,
     7  	"guides": false,
     8  	"colors": {
     9  		"DarkOrange": "#FF8C00"
    10  	},
    11  	"fonts": {
    12  		"myCourier": {
    13  			"name": "Courier",
    14  			"size": 12,
    15  			"col": "#DF0000"
    16  		},
    17  		"label": {
    18  			"name": "Helvetica",
    19  			"size": 12,
    20  			"col": "#007000"
    21  		},
    22  		"userFont": {
    23  			"name": "Roboto-Regular",
    24  			"lang": "el",
    25  			"script": "Grek",
    26  			"size": 12,
    27  			"col": "#000070"
    28  		},
    29  		"cjkUserFont": {
    30  			"name": "UnifontMedium",
    31  			"lang": "zh",
    32  			"script": "HanS",
    33  			"size": 12,
    34  			"col": "$DarkOrange"
    35  		}
    36  	},
    37  	"margin": {
    38  		"width": 10
    39  	},
    40  	"pages": {
    41  		"1": {
    42  			"content": {
    43  				"text": [
    44  					{
    45  						"hide": false,
    46  						"value": "Textbox using Corefont Courier",
    47  						"anchor": "c",
    48  						"font": {
    49  							"name": "$myCourier"
    50  						}
    51  					},
    52  					{
    53  						"hide": false,
    54  						"value": "Textbox using Corefont Helvetica",
    55  						"anchor": "c",
    56  						"dy": -20,
    57  						"font": {
    58  							"name": "$label"
    59  						}
    60  					},
    61  					{
    62  						"hide": false,
    63  						"value": "Textbox using Userfont Robotic",
    64  						"anchor": "c",
    65  						"dy": -40,
    66  						"font": {
    67  							"name": "$userFont"
    68  						}
    69  					},
    70  					{
    71  						"hide": false,
    72  						"value": "Textbox using cjk Userfont Unifont",
    73  						"anchor": "c",
    74  						"dy": -60,
    75  						"font": {
    76  							"name": "$cjkUserFont"
    77  						}
    78  					},
    79  					{
    80  						"hide": false,
    81  						"value": "使用 cjk Userfont Unifont 的文本框",
    82  						"anchor": "c",
    83  						"dy": -80,
    84  						"font": {
    85  							"name": "$cjkUserFont"
    86  						}
    87  					}
    88  				]
    89  			}
    90  		}
    91  	}
    92  }