p3x-html-pdf 2025.4.164 โ 2025.4.165
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 +27 -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.
|
|
9
|
+
# ๐ Generates PDF from HTML with custom headers and footers with wkhtmltopdf v2025.4.165
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -216,6 +216,31 @@ For more options, check the official [wkhtmltopdf usage guide](https://wkhtmltop
|
|
|
216
216
|
|
|
217
217
|
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.
|
|
218
218
|
|
|
219
|
+
### How to Add a Page Break with `p3x-html-pdf`
|
|
220
|
+
|
|
221
|
+
To insert a page break, simply use the following snippet:
|
|
222
|
+
|
|
223
|
+
```html
|
|
224
|
+
<div class="p3x-template-page-break"></div>
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
#### โ
Key Points:
|
|
228
|
+
- ๐ง **No additional CSS** is required; the functionality is built-in.
|
|
229
|
+
- ๐ The content after this `<div>` will automatically start on a new page.
|
|
230
|
+
- ๐งน Ensure your HTML structure is clean for proper rendering.
|
|
231
|
+
|
|
232
|
+
#### ๐ Example:
|
|
233
|
+
```html
|
|
234
|
+
<div>
|
|
235
|
+
<p>๐ This content will be on the first page.</p>
|
|
236
|
+
</div>
|
|
237
|
+
|
|
238
|
+
<div class="p3x-template-page-break"></div>
|
|
239
|
+
|
|
240
|
+
<div>
|
|
241
|
+
<p>๐ This content will appear on the next page.</p>
|
|
242
|
+
</div>
|
|
243
|
+
```
|
|
219
244
|
---
|
|
220
245
|
|
|
221
246
|
## ๐ Placeholders
|
|
@@ -582,7 +607,7 @@ All my domains, including [patrikx3.com](https://patrikx3.com), [corifeus.eu](ht
|
|
|
582
607
|
---
|
|
583
608
|
|
|
584
609
|
|
|
585
|
-
[**P3X-HTML-PDF**](https://corifeus.com/html-pdf) Build v2025.4.
|
|
610
|
+
[**P3X-HTML-PDF**](https://corifeus.com/html-pdf) Build v2025.4.165
|
|
586
611
|
|
|
587
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)
|
|
588
613
|
|