p3x-html-pdf 2025.4.165 → 2025.4.168
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 +11 -7
- package/package.json +3 -3
- package/test/test.js +8 -1
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
[//]: #@corifeus-header
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/p3x-html-pdf) [](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.168
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -176,15 +176,20 @@ const path = require('path');
|
|
|
176
176
|
`,
|
|
177
177
|
},
|
|
178
178
|
title: 'P3X-HTML-PDF Detailed Invoice',
|
|
179
|
-
debug:
|
|
179
|
+
debug: false,
|
|
180
180
|
saveFile: outputPath,
|
|
181
181
|
};
|
|
182
182
|
|
|
183
183
|
try {
|
|
184
184
|
await generate(options);
|
|
185
185
|
console.log('✅ PDF generated successfully!');
|
|
186
|
-
|
|
186
|
+
|
|
187
|
+
// or
|
|
188
|
+
options.settings.save = false
|
|
187
189
|
const buffer = await generate(options);
|
|
190
|
+
console.log('--------------------------------------------------------------')
|
|
191
|
+
console.log('PDF Buffer:', buffer);
|
|
192
|
+
|
|
188
193
|
} catch (err) {
|
|
189
194
|
console.error('❌ Error generating PDF:', err);
|
|
190
195
|
}
|
|
@@ -607,10 +612,9 @@ All my domains, including [patrikx3.com](https://patrikx3.com), [corifeus.eu](ht
|
|
|
607
612
|
---
|
|
608
613
|
|
|
609
614
|
|
|
610
|
-
[**P3X-HTML-PDF**](https://corifeus.com/html-pdf) Build v2025.4.
|
|
611
|
-
|
|
612
|
-
[](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)
|
|
615
|
+
[**P3X-HTML-PDF**](https://corifeus.com/html-pdf) Build v2025.4.168
|
|
613
616
|
|
|
617
|
+
[](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)
|
|
614
618
|
|
|
615
619
|
|
|
616
620
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "p3x-html-pdf",
|
|
3
|
-
"version": "2025.4.
|
|
3
|
+
"version": "2025.4.168",
|
|
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.135"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"cheerio": "^1.0.0",
|
|
46
|
-
"corifeus-utils": "^2025.4.
|
|
46
|
+
"corifeus-utils": "^2025.4.123",
|
|
47
47
|
"fs-extra": "^11.3.0",
|
|
48
48
|
"progress": "^2.0.3"
|
|
49
49
|
},
|
package/test/test.js
CHANGED
|
@@ -122,13 +122,20 @@ const fs = require('fs');
|
|
|
122
122
|
`,
|
|
123
123
|
},
|
|
124
124
|
title: 'P3X-HTML-PDF Detailed Invoice',
|
|
125
|
-
debug:
|
|
125
|
+
debug: false,
|
|
126
126
|
saveFile: outputPath,
|
|
127
127
|
};
|
|
128
128
|
|
|
129
129
|
// Generate the PDF
|
|
130
130
|
await generate(options);
|
|
131
131
|
|
|
132
|
+
options.settings.save = false;
|
|
133
|
+
|
|
134
|
+
const buffer = await generate(options);
|
|
135
|
+
|
|
136
|
+
console.log('--------------------------------------------------------------')
|
|
137
|
+
console.log('PDF Buffer:', buffer);
|
|
138
|
+
|
|
132
139
|
console.log('PDF generation successful! Check test-output.pdf.');
|
|
133
140
|
} catch (error) {
|
|
134
141
|
console.error('PDF generation failed:', error);
|