github.com/pdfcpu/pdfcpu@v0.11.1/pkg/testdata/json/create/imagesDirsFiles.json (about) 1 { 2 "paper": "A4L", 3 "crop": "10", 4 "origin": "LowerLeft", 5 "contentBox": true, 6 "debug": false, 7 "guides": false, 8 "colors": { 9 "DarkOrange": "#FF8C00", 10 "Beige": "#F5F5DC" 11 }, 12 "dirs": { 13 "images": "../../testdata/resources" 14 }, 15 "files": { 16 "logo1": "$images/demo.png", 17 "logo2": "../../testdata/resources/demo.png", 18 "logo_pdfcpu": "$images/logoVerySmall.png", 19 "logo_gh": "$images/github.png" 20 }, 21 "fonts": { 22 "myCourier": { 23 "name": "Courier", 24 "size": 12 25 } 26 }, 27 "margin": { 28 "width": 10 29 }, 30 "borders": { 31 "myBorder": { 32 "width": 5, 33 "col": "#FF0000", 34 "style": "round" 35 } 36 }, 37 "padding": { 38 "width": 10 39 }, 40 "header": { 41 "font": { 42 "name": "Courier-Bold", 43 "size": 24, 44 "col": "#FF0000" 45 }, 46 "bgCol": "#FFFFFF", 47 "left": "$logo_pdfcpu", 48 "center": "Imageboxes, dirs & files", 49 "right": "$logo_gh", 50 "height": 50, 51 "dx": 5, 52 "dy": 10, 53 "border": false 54 }, 55 "footer": { 56 "font": { 57 "name": "$myCourier" 58 }, 59 "left": "pdfcpu: %v\nCreated: %t", 60 "center": "Page %p of %P", 61 "right": "Source:\ntestdata/json/create/imagesDirsFiles.json", 62 "height": 30, 63 "dx": 5, 64 "dy": 5, 65 "border": false 66 }, 67 "images": { 68 "logo_pdfcpu": { 69 "src": "$logo_pdfcpu", 70 "url": "https://pdfcpu.io", 71 "margin": { 72 "width": 5 73 } 74 }, 75 "logo_gh": { 76 "src": "$logo_gh", 77 "url": "https://github.com/pdfcpu/pdfcpu", 78 "margin": { 79 "width": 5 80 } 81 } 82 }, 83 "texts": { 84 "label": { 85 "dx": 2, 86 "dy": 2, 87 "font": { 88 "name": "$myCourier" 89 } 90 } 91 }, 92 "pages": { 93 "1": { 94 "files": { 95 "logo1": "$images/pdfchip3.png", 96 "logo2": "../../testdata/resources/pdfchip3.png" 97 }, 98 "content": { 99 "guides": [ 100 { 101 "pos": [ 102 -1, 103 -1 104 ] 105 } 106 ], 107 "image": [ 108 { 109 "hide": false, 110 "src": "$logo1", 111 "anchor": "left", 112 "height": 100, 113 "url": "https://pdfcpu.io" 114 }, 115 { 116 "hide": false, 117 "src": "$logo2", 118 "anchor": "center", 119 "height": 100, 120 "url": "https://pdfcpu.io" 121 }, 122 { 123 "hide": false, 124 "src": "../../testdata/resources/pdfchip3.png", 125 "anchor": "right", 126 "height": 100, 127 "url": "https://pdfcpu.io" 128 } 129 ], 130 "text": [ 131 { 132 "name": "$label", 133 "value": "using page scoped filenames", 134 "align": "center", 135 "pos": [ 136 -1, 137 290 138 ], 139 "font": { 140 "name": "$myCourier", 141 "size": 18 142 } 143 } 144 ] 145 } 146 }, 147 "2": { 148 "content": { 149 "guides": [ 150 { 151 "pos": [ 152 -1, 153 -1 154 ] 155 } 156 ], 157 "image": [ 158 { 159 "hide": false, 160 "src": "$logo1", 161 "anchor": "left", 162 "height": 100, 163 "border": { 164 "width": 5, 165 "col": "$DarkOrange", 166 "style": "round" 167 } 168 }, 169 { 170 "hide": false, 171 "src": "$logo2", 172 "anchor": "center", 173 "height": 100, 174 "border": { 175 "width": 5, 176 "col": "$DarkOrange", 177 "style": "round" 178 } 179 }, 180 { 181 "hide": false, 182 "src": "../../testdata/resources/demo.png", 183 "anchor": "right", 184 "height": 100, 185 "border": { 186 "width": 5, 187 "col": "$DarkOrange", 188 "style": "round" 189 } 190 } 191 ], 192 "text": [ 193 { 194 "name": "$label", 195 "value": "using global scoped filenames", 196 "align": "center", 197 "pos": [ 198 -1, 199 290 200 ], 201 "font": { 202 "name": "$myCourier", 203 "size": 18 204 } 205 } 206 ] 207 } 208 }, 209 "3": { 210 "content": { 211 "image": [ 212 { 213 "hide": false, 214 "src": "https://upload.wikimedia.org/wikipedia/commons/a/a1/Alan_Turing_Aged_16.jpg", 215 "anchor": "left", 216 "height": 100, 217 "border": { 218 "width": 5, 219 "col": "$DarkOrange", 220 "style": "round" 221 }, 222 "url": "https://en.wikipedia.org/wiki/Alan_Turing" 223 }, 224 { 225 "hide": false, 226 "src": "https://upload.wikimedia.org/wikipedia/commons/9/9c/Rob-pike-oscon.jpg", 227 "anchor": "center", 228 "height": 100, 229 "border": { 230 "width": 5, 231 "col": "$DarkOrange", 232 "style": "round" 233 }, 234 "url": "https://en.wikipedia.org/wiki/Rob_Pike" 235 }, 236 { 237 "hide": false, 238 "src": "https://upload.wikimedia.org/wikipedia/commons/4/43/Pauli.jpg", 239 "anchor": "right", 240 "height": 100, 241 "border": { 242 "width": 5, 243 "col": "$DarkOrange", 244 "style": "round" 245 }, 246 "url": "https://en.wikipedia.org/wiki/Wolfgang_Pauli" 247 } 248 ], 249 "text": [ 250 { 251 "name": "$label", 252 "value": "using urls", 253 "align": "center", 254 "anchor": "center", 255 "dy": 80, 256 "font": { 257 "name": "$myCourier", 258 "size": 18 259 } 260 } 261 ] 262 } 263 } 264 } 265 }