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

     1  {
     2  	"paper": "A4L",
     3  	"crop": "10",
     4  	"origin": "LowerLeft",
     5  	"contentBox": true,
     6  	"debug": false,
     7  	"guides": true,
     8  	"colors": {
     9  		"Beige": "#F5F5DC",
    10  		"DarkSalmon": "#E9967A"
    11  	},
    12  	"bgcol": "#BEDED9",
    13  	"timestamp": "Monday, 2.Jan 2006 15:04:05",
    14  	"dirs": {
    15  		"images": "../../testdata/resources"
    16  	},
    17  	"files": {
    18  		"logo1": "$images/logoVerySmall.png",
    19  		"logo2": "$images/github.png"
    20  	},
    21  	"fonts": {
    22  		"unifont": {
    23  			"name": "UnifontMedium",
    24  			"size": 12
    25  		},
    26  		"myCourier": {
    27  			"name": "Courier",
    28  			"size": 12,
    29  			"col": "#00AA00"
    30  		}
    31  	},
    32  	"borders": {
    33  		"myBorder": {
    34  			"width": 5,
    35  			"//col": "#0000FF",
    36  			"//style": "bevel"
    37  		}
    38  	},
    39  	"margin": {
    40  		"width": 20
    41  	},
    42  	"header": {
    43  		"font": {
    44  			"name": "$unifont",
    45  			"size": 24,
    46  			"col": "#00AA00"
    47  		},
    48  		"left": "$logo1",
    49  		"center": "טבלת הדגמה",
    50  		"right": "$logo2",
    51  		"height": 40,
    52  		"dx": 5,
    53  		"dy": 10,
    54  		"border": false,
    55  		"rtl": true
    56  	},
    57  	"footer": {
    58  		"font": {
    59  			"name": "$unifont",
    60  			"col": "Black"
    61  		},
    62  		"left": "pdfcpu: %v\n%t :נוצר",
    63  		"center": "%P שֶׁל %p עמוד",
    64  		"right": "מָקוֹר:\ntestdata/json/create/tables.json",
    65  		"height": 30,
    66  		"dx": 5,
    67  		"dy": 5,
    68  		"border": false
    69  	},
    70  	"images": {
    71  		"logo1": {
    72  			"src": "$logo1",
    73  			"url": "https://pdfcpu.io",
    74  			"margin": {
    75  				"width": 5
    76  			}
    77  		},
    78  		"logo2": {
    79  			"src": "$logo2",
    80  			"url": "https://github.com/pdfcpu/pdfcpu",
    81  			"margin": {
    82  				"width": 5
    83  			}
    84  		}
    85  	},
    86  	"pages": {
    87  		"1": {
    88  			"content": {
    89  				"guides": [
    90  					{
    91  						"pos": [
    92  							-1,
    93  							-1
    94  						]
    95  					}
    96  				],
    97  				"table": [
    98  					{
    99  						"hide": false,
   100  						"header": {
   101  							"values": [
   102  								"כמות",
   103  								"מחיר",
   104  								"תיאור",
   105  								"כַּמוּת"
   106  							],
   107  							"colAnchors": [
   108  								"Center",
   109  								"Center",
   110  								"Center",
   111  								"Center"
   112  							],
   113  							"bgCol": "$DarkSalmon",
   114  							"font": {
   115  								"name": "$unifont",
   116  								"size": 15
   117  							}
   118  						},
   119  						"values": [
   120  							[
   121  								"₪115.00",
   122  								"₪115.00",
   123  								"עכבר",
   124  								"1"
   125  							],
   126  							[
   127  								"₪750,000.00",
   128  								"₪250,000.00",
   129  								"חַדקֶרֶן",
   130  								"3"
   131  							],
   132  							[
   133  								"",
   134  								")לֹא יְסוּלֵא בְּפָּז(",
   135  								"סְנָאִי הָעַרָבָה",
   136  								"1"
   137  							]
   138  						],
   139  						"rows": 5,
   140  						"cols": 4,
   141  						"width": 400,
   142  						"colWidths": [
   143  							25,
   144  							35,
   145  							30,
   146  							10
   147  						],
   148  						"colAnchors": [
   149  							"Right",
   150  							"Right",
   151  							"Right",
   152  							"Center"
   153  						],
   154  						"lheight": 30,
   155  						"grid": true,
   156  						"anchor": "center",
   157  						"dx": 0,
   158  						"dy": 0,
   159  						"bgCol": "$Beige",
   160  						"oddCol": "LightGray",
   161  						"evenCol": "Gray",
   162  						"font": {
   163  							"name": "$unifont",
   164  							"size": 12,
   165  							"col": "Black"
   166  						},
   167  						"rtl": true,
   168  						"margin": {
   169  							"width": 0
   170  						},
   171  						"border": {
   172  							"width": 0
   173  						},
   174  						"padding": {
   175  							"width": 5
   176  						},
   177  						"rot": 20
   178  					}
   179  				]
   180  			}
   181  		}
   182  	}
   183  }