p3x-html-pdf 2025.4.156 → 2025.4.159
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 +13 -4
- package/package.json +3 -3
- package/test/test.js +0 -2
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
[//]: #@corifeus-header
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/p3x-html-pdf) [](https://paypal.me/patrikx3) [](https://www.patrikx3.com/en/front/contact) [](https://www.facebook.com/corifeus.software) [](https://www.npmjs.com/package/p3x-html-pdf) [](https://paypal.me/patrikx3) [](https://www.patrikx3.com/en/front/contact) [](https://www.facebook.com/corifeus.software) [](https://network.corifeus.com/status/31ad7a5c194347c33e5445dbaf8)
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
# 📃 Generates PDF from HTML with custom headers and footers with wkhtmltopdf v2025.4.
|
|
9
|
+
# 📃 Generates PDF from HTML with custom headers and footers with wkhtmltopdf v2025.4.159
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -215,9 +215,11 @@ Headers and footers in `p3x-html-pdf` are managed via HTML templates. You can:
|
|
|
215
215
|
- **Header IDs**:
|
|
216
216
|
- `p3x-header`: The default header for all pages.
|
|
217
217
|
- `p3x-header-<page>`: A header for a specific page (e.g., `p3x-header-1` for the first page).
|
|
218
|
+
- `p3x-header-last`: Last header for last page.
|
|
218
219
|
- **Footer IDs**:
|
|
219
220
|
- `p3x-footer`: The default footer for all pages.
|
|
220
221
|
- `p3x-footer-<page>`: A footer for a specific page.
|
|
222
|
+
- `p3x-footer-last`: Last footer for last page.
|
|
221
223
|
- **`data-height`**: Specifies the height of the header/footer (in millimeters). Ensure this matches the expected content size to prevent overlap.
|
|
222
224
|
|
|
223
225
|
---
|
|
@@ -245,7 +247,14 @@ The following example demonstrates a **custom header** for the first page and a
|
|
|
245
247
|
<div style="display: table; width: 100%; height: 40mm; text-align: right;">
|
|
246
248
|
<div style="display: table-cell; vertical-align: middle; text-align: right;">
|
|
247
249
|
<h1 style="margin: 0; font-size: 20px; color: #333;">P3X HTML Invoice</h1>
|
|
248
|
-
|
|
250
|
+
</div>
|
|
251
|
+
</div>
|
|
252
|
+
</div>
|
|
253
|
+
|
|
254
|
+
<div id="p3x-header-last" data-height="40mm" >
|
|
255
|
+
<div style="display: table; width: 100%; height: 40mm; text-align: right;">
|
|
256
|
+
<div style="display: table-cell; vertical-align: middle; text-align: right;">
|
|
257
|
+
<h1 style="margin: 0; font-size: 20px; color: #333;">P3X HTML Final Notes </h1>
|
|
249
258
|
</div>
|
|
250
259
|
</div>
|
|
251
260
|
</div>
|
|
@@ -509,7 +518,7 @@ All my domains, including [patrikx3.com](https://patrikx3.com), [corifeus.eu](ht
|
|
|
509
518
|
---
|
|
510
519
|
|
|
511
520
|
|
|
512
|
-
[**P3X-HTML-PDF**](https://corifeus.com/html-pdf) Build v2025.4.
|
|
521
|
+
[**P3X-HTML-PDF**](https://corifeus.com/html-pdf) Build v2025.4.159
|
|
513
522
|
|
|
514
523
|
[](https://www.npmjs.com/package/p3x-html-pdf) [](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [](https://www.patrikx3.com/en/front/contact) [](https://www.facebook.com/corifeus.software)
|
|
515
524
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "p3x-html-pdf",
|
|
3
|
-
"version": "2025.4.
|
|
3
|
+
"version": "2025.4.159",
|
|
4
4
|
"corifeus": {
|
|
5
5
|
"prefix": "p3x-",
|
|
6
6
|
"publish": true,
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
},
|
|
40
40
|
"homepage": "https://corifeus.com/html-pdf",
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"corifeus-builder": "^2025.4.
|
|
42
|
+
"corifeus-builder": "^2025.4.128"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"cheerio": "^1.0.0",
|
|
46
|
-
"corifeus-utils": "^2025.4.
|
|
46
|
+
"corifeus-utils": "^2025.4.120",
|
|
47
47
|
"fs-extra": "^11.3.0",
|
|
48
48
|
"progress": "^2.0.3"
|
|
49
49
|
},
|
package/test/test.js
CHANGED
|
@@ -49,7 +49,6 @@ const fs = require('fs');
|
|
|
49
49
|
<div style="display: table; width: 100%; height: 40mm; text-align: right;">
|
|
50
50
|
<div style="display: table-cell; vertical-align: middle; text-align: right;">
|
|
51
51
|
<h1 style="margin: 0; font-size: 20px; color: #333;">P3X HTML Invoice </h1>
|
|
52
|
-
<p style="margin: 5px 0 0; font-size: 14px; color: #555;">Generated: ${new Date().toLocaleDateString()}</p>
|
|
53
52
|
</div>
|
|
54
53
|
</div>
|
|
55
54
|
</div>
|
|
@@ -57,7 +56,6 @@ const fs = require('fs');
|
|
|
57
56
|
<div style="display: table; width: 100%; height: 40mm; text-align: right;">
|
|
58
57
|
<div style="display: table-cell; vertical-align: middle; text-align: right;">
|
|
59
58
|
<h1 style="margin: 0; font-size: 20px; color: #333;">P3X HTML Final Notes </h1>
|
|
60
|
-
<p style="margin: 5px 0 0; font-size: 14px; color: #555;">Generated: ${new Date().toLocaleDateString()}</p>
|
|
61
59
|
</div>
|
|
62
60
|
</div>
|
|
63
61
|
</div>
|