h17-sspdf 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/DOCUMENTATION.md
CHANGED
|
@@ -1397,6 +1397,8 @@ registerPlugin("chart", plugins.chart);
|
|
|
1397
1397
|
The chart plugin is synchronous during `renderDocument`, but Chart.js rendering is async. You must call `plugins.chart.preRender(operation)` before `renderDocument`. This renders the chart to a PNG buffer and caches it on the operation object.
|
|
1398
1398
|
|
|
1399
1399
|
```js
|
|
1400
|
+
const theme = require("./my-theme");
|
|
1401
|
+
|
|
1400
1402
|
const chartOp = {
|
|
1401
1403
|
type: "chart",
|
|
1402
1404
|
chartType: "bar",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"xRightMm": 178
|
|
45
45
|
},
|
|
46
46
|
{ "type": "spacer", "mm": 16 },
|
|
47
|
-
{ "type": "text", "label": "cert.date", "text": "Issued in
|
|
47
|
+
{ "type": "text", "label": "cert.date", "text": "Issued in São Paulo, Brazil on March 20, 2026", "xMm": 22, "maxWidthMm": 166 },
|
|
48
48
|
{
|
|
49
49
|
"type": "hiddenText",
|
|
50
50
|
"label": "cert.hidden.tags",
|