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 CHANGED
@@ -1,12 +1,12 @@
1
1
  [//]: #@corifeus-header
2
2
 
3
- [![NPM](https://img.shields.io/npm/v/p3x-html-pdf.svg)](https://www.npmjs.com/package/p3x-html-pdf) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://paypal.me/patrikx3) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Corifeus @ Facebook](https://img.shields.io/badge/Facebook-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software) [![Uptime ratio (90 days)](https://network.corifeus.com/public/api/uptime-shield/31ad7a5c194347c33e5445dbaf8.svg)](https://network.corifeus.com/status/31ad7a5c194347c33e5445dbaf8)
3
+ [![NPM](https://img.shields.io/npm/v/p3x-html-pdf.svg)](https://www.npmjs.com/package/p3x-html-pdf) [![Donate for PatrikX3 / P3X](https://img.shields.io/badge/Donate-PatrikX3-003087.svg)](https://paypal.me/patrikx3) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Corifeus @ Facebook](https://img.shields.io/badge/Facebook-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software) [![Uptime ratio (90 days)](https://network.corifeus.com/public/api/uptime-shield/31ad7a5c194347c33e5445dbaf8.svg)](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.165
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: true,
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
- // or options.settings.save = false
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.165
611
-
612
- [![NPM](https://img.shields.io/npm/v/p3x-html-pdf.svg)](https://www.npmjs.com/package/p3x-html-pdf) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)
615
+ [**P3X-HTML-PDF**](https://corifeus.com/html-pdf) Build v2025.4.168
613
616
 
617
+ [![NPM](https://img.shields.io/npm/v/p3x-html-pdf.svg)](https://www.npmjs.com/package/p3x-html-pdf) [![Donate for PatrikX3 / P3X](https://img.shields.io/badge/Donate-PatrikX3-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](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.165",
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.128"
42
+ "corifeus-builder": "^2025.4.135"
43
43
  },
44
44
  "dependencies": {
45
45
  "cheerio": "^1.0.0",
46
- "corifeus-utils": "^2025.4.120",
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: true,
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);