p3x-html-pdf 2025.4.130 → 2025.4.131

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.
Files changed (2) hide show
  1. package/README.md +24 -38
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
 
8
8
 
9
- # 📃 Generates PDF from HTML with custom headers and footers with wkhtmltopdf v2025.4.130
9
+ # 📃 Generates PDF from HTML with custom headers and footers with wkhtmltopdf v2025.4.131
10
10
 
11
11
 
12
12
 
@@ -159,7 +159,7 @@ const path = require('path');
159
159
 
160
160
  For more options, check the official [wkhtmltopdf usage guide](https://wkhtmltopdf.org/usage/wkhtmltopdf.txt).
161
161
 
162
- Unfortunately the version latest HTTS is not working, so it is better to use inline images or using HTTP as that is dated but with HTTP in local filesystem is perfect.
162
+ Unfortunately the version latest HTTPS TLS 1.3 is not working, so it is better to use inline filesystem images or using HTTP as that is dated but still works.
163
163
 
164
164
  ---
165
165
 
@@ -178,6 +178,8 @@ Example:
178
178
  </div>
179
179
  ```
180
180
 
181
+ The `p3x-footer` and `p3x-header` should not have any styles other than `id` and `data-height`.
182
+
181
183
  ---
182
184
 
183
185
  ## 📊 Advanced Features
@@ -229,47 +231,31 @@ For instance, the following layout works seamlessly:
229
231
  </div>
230
232
  ```
231
233
 
232
- ---
233
234
 
234
- ## Node.js Test Example
235
235
 
236
- The `node ./test/test.js` script demonstrates how to generate the example PDF:
236
+ ## Steps to Clone and Run `test/test.js`
237
237
 
238
- ```javascript
239
- const { generate } = require('../src/index');
240
- const path = require('path');
241
- const fs = require('fs');
238
+ 1. **Clone the Repository**:
239
+ ```bash
240
+ git clone https://github.com/patrikx3/html-pdf.git
241
+ cd html-pdf
242
+ ```
242
243
 
243
- (async () => {
244
- try {
245
- const outputPath = path.resolve(__dirname, '..', 'test-output.pdf');
246
- if (fs.existsSync(outputPath)) {
247
- fs.unlinkSync(outputPath);
248
- }
249
-
250
- const options = {
251
- settings: {
252
- save: true,
253
- template: {
254
- format: 'A4',
255
- orientation: 'portrait',
256
- marginLeft: 10,
257
- marginRight: 10,
258
- },
259
- html: '<h1>Hello PDF</h1>',
260
- },
261
- title: 'Test PDF',
262
- saveFile: outputPath,
263
- };
244
+ 2. **Install Dependencies**:
245
+ Using Yarn:
246
+ ```bash
247
+ yarn install
248
+ ```
264
249
 
265
- await generate(options);
266
- console.log('PDF generated!');
267
- } catch (error) {
268
- console.error('Error:', error);
269
- }
270
- })();
271
- ```
250
+ Or, using NPM:
251
+ ```bash
252
+ npm install
253
+ ```
272
254
 
255
+ 3. **Run the Test Script**:
256
+ ```bash
257
+ node ./test/test.js
258
+ ```
273
259
  ---
274
260
 
275
261
  # Puppeteer vs. p3x-html-pdf: Resource Usage and Features Comparison
@@ -380,7 +366,7 @@ All my domains, including [patrikx3.com](https://patrikx3.com), [corifeus.eu](ht
380
366
  ---
381
367
 
382
368
 
383
- [**P3X-HTML-PDF**](https://corifeus.com/html-pdf) Build v2025.4.130
369
+ [**P3X-HTML-PDF**](https://corifeus.com/html-pdf) Build v2025.4.131
384
370
 
385
371
  [![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)
386
372
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "p3x-html-pdf",
3
- "version": "2025.4.130",
3
+ "version": "2025.4.131",
4
4
  "corifeus": {
5
5
  "prefix": "p3x-",
6
6
  "publish": true,