p3x-html-pdf 2025.4.129 → 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.
- package/README.md +24 -38
- 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.
|
|
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
|
|
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
|
-
|
|
236
|
+
## Steps to Clone and Run `test/test.js`
|
|
237
237
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
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
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
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
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
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.
|
|
369
|
+
[**P3X-HTML-PDF**](https://corifeus.com/html-pdf) Build v2025.4.131
|
|
384
370
|
|
|
385
371
|
[](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)
|
|
386
372
|
|