av6-pdf-engine 1.0.2 → 1.0.3
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/README.md +4 -14
- package/package.json +1 -5
package/README.md
CHANGED
|
@@ -25,11 +25,7 @@ yarn add av6-pdf-engine
|
|
|
25
25
|
## Quick start
|
|
26
26
|
|
|
27
27
|
```ts
|
|
28
|
-
import {
|
|
29
|
-
renderCustomPdfToBuffer,
|
|
30
|
-
renderCustomPdf,
|
|
31
|
-
CustomDocDefinition,
|
|
32
|
-
} from "av6-pdf-engine";
|
|
28
|
+
import { renderCustomPdfToBuffer, renderCustomPdf, CustomDocDefinition } from "av6-pdf-engine";
|
|
33
29
|
|
|
34
30
|
const doc: CustomDocDefinition = {
|
|
35
31
|
pageSize: "A4",
|
|
@@ -83,11 +79,7 @@ const doc: CustomDocDefinition = {
|
|
|
83
79
|
{ text: "Qty", style: "label", align: "right" },
|
|
84
80
|
{ text: "Total", style: "label", align: "right" },
|
|
85
81
|
],
|
|
86
|
-
[
|
|
87
|
-
{ text: "Consulting" },
|
|
88
|
-
{ text: "12", align: "right" },
|
|
89
|
-
{ text: "$3,000", align: "right" },
|
|
90
|
-
],
|
|
82
|
+
[{ text: "Consulting" }, { text: "12", align: "right" }, { text: "$3,000", align: "right" }],
|
|
91
83
|
],
|
|
92
84
|
},
|
|
93
85
|
],
|
|
@@ -144,11 +136,9 @@ Each block supports a `visible` flag so you can skip rendering without mutating
|
|
|
144
136
|
- `pageBackground` is painted before header/content on every new page, while `watermark.mode` decides which pages receive the overlay.
|
|
145
137
|
- Footer callbacks receive `(pageNumber, pageSize)` so you can display pagination, print timestamps, or conditionally hide content.
|
|
146
138
|
|
|
147
|
-
##
|
|
139
|
+
## Contributors
|
|
148
140
|
|
|
149
|
-
-
|
|
150
|
-
- Regenerate before publishing: `pnpm prepublishOnly`
|
|
151
|
-
- Run the sample script (if you add one) with `pnpm demo` to exercise the renderer locally.
|
|
141
|
+
- [polarizz17](https://github.com/polarizz17)
|
|
152
142
|
|
|
153
143
|
## License
|
|
154
144
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "av6-pdf-engine",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -13,8 +13,6 @@
|
|
|
13
13
|
"format": "prettier --write **/*.ts"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@types/cors": "^2.8.19",
|
|
17
|
-
"@types/express": "^5.0.5",
|
|
18
16
|
"axios": "^1.13.2",
|
|
19
17
|
"bwip-js": "^4.8.0",
|
|
20
18
|
"pdfkit": "^0.15.0",
|
|
@@ -23,10 +21,8 @@
|
|
|
23
21
|
},
|
|
24
22
|
"devDependencies": {
|
|
25
23
|
"@types/bwip-js": "^3.2.3",
|
|
26
|
-
"@types/node": "^22.0.0",
|
|
27
24
|
"@types/pdfkit": "^0.13.6",
|
|
28
25
|
"@types/qrcode": "^1.5.6",
|
|
29
|
-
"ts-node": "^10.9.2",
|
|
30
26
|
"typescript": "^5.4.0",
|
|
31
27
|
"prettier": "^3.6.2"
|
|
32
28
|
}
|