h17-sspdf 0.1.5 → 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",
package/README.md CHANGED
@@ -409,8 +409,8 @@ npx sspdf -s source.json -t theme.js -o output.pdf
409
409
 
410
410
  - A4 only
411
411
  - Single-line `row` cells, no multi-line column pairs
412
- - No `{{pages}}` total page count token
413
- - The `canvas` npm package (native C++ addon) is the only runtime dependency, required for server-side chart rendering.
412
+ - `{{page}}` gives the current page number; `{{pages}}` (total page count) is not supported because keep-together rules make the final page count unpredictable until the last operation is laid out
413
+ - Charts require the `canvas` npm package (native C++ addon) for server-side rendering; everything else is zero native dependencies
414
414
 
415
415
  ---
416
416
 
@@ -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 Porto on March 20, 2026", "xMm": 22, "maxWidthMm": 166 },
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "h17-sspdf",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Declarative PDF engine - define layout once, feed it JSON, get consistent PDFs",
5
5
  "main": "index.js",
6
6
  "author": "Hugo Palma",