github.com/pdfcpu/pdfcpu@v0.11.1/pkg/testdata/json/create/flow/updateAnyPage2.json (about) 1 { 2 "paper": "A4P", 3 "crop": "10", 4 "origin": "LowerLeft", 5 "debug": false, 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 "2": { 42 "content": { 43 "text": [ 44 { 45 "hide": false, 46 "value": "Textbox reusing Corefont Courier", 47 "anchor": "tc", 48 "dy": -25, 49 "font": { 50 "name": "$myCourier" 51 } 52 }, 53 { 54 "hide": false, 55 "value": "Textbox reusing Corefont Helvetica", 56 "anchor": "tc", 57 "dy": -45, 58 "font": { 59 "name": "$label" 60 } 61 }, 62 { 63 "hide": false, 64 "value": "Textbox reusing Userfont Robotic", 65 "anchor": "tc", 66 "dy": -65, 67 "font": { 68 "name": "$userFont" 69 } 70 }, 71 { 72 "hide": false, 73 "value": "Textbox reusing cjk Userfont Unifont", 74 "anchor": "tc", 75 "dy": -85, 76 "font": { 77 "name": "$cjkUserFont" 78 } 79 }, 80 { 81 "hide": false, 82 "value": "文本框重用 cjk Userfont Unifont", 83 "anchor": "tc", 84 "dy": -105, 85 "font": { 86 "name": "$cjkUserFont" 87 } 88 } 89 ] 90 } 91 }, 92 "3": { 93 "content": { 94 "text": [ 95 { 96 "hide": false, 97 "value": "New page: Textbox reusing Corefont Courier", 98 "anchor": "c", 99 "font": { 100 "name": "$myCourier" 101 } 102 }, 103 { 104 "hide": false, 105 "value": "New page: Textbox reusing Corefont Helvetica", 106 "anchor": "c", 107 "dy": -20, 108 "font": { 109 "name": "$label" 110 } 111 }, 112 { 113 "hide": false, 114 "value": "New page: Textbox reusing Userfont Robotic", 115 "anchor": "c", 116 "dy": -40, 117 "font": { 118 "name": "$userFont" 119 } 120 }, 121 { 122 "hide": false, 123 "value": "New page: Textbox reusing cjk Userfont Unifont", 124 "anchor": "c", 125 "dy": -60, 126 "font": { 127 "name": "$cjkUserFont" 128 } 129 }, 130 { 131 "hide": false, 132 "value": "新页面:文本框重用 cjk Userfont Unifont", 133 "anchor": "c", 134 "dy": -80, 135 "font": { 136 "name": "$cjkUserFont" 137 } 138 } 139 ] 140 } 141 } 142 } 143 }