p3x-html-pdf 2025.4.163 โ†’ 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 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.163
9
+ # ๐Ÿ“ƒ Generates PDF from HTML with custom headers and footers with wkhtmltopdf v2025.4.165
10
10
 
11
11
 
12
12
 
@@ -22,7 +22,7 @@
22
22
  ### ๐Ÿ› ๏ธ Built on NodeJs version
23
23
 
24
24
  ```txt
25
- v22.13.0
25
+ v22.13.1
26
26
  ```
27
27
 
28
28
 
@@ -158,7 +158,7 @@ const path = require('path');
158
158
  </tr>
159
159
  </table>
160
160
  </div>
161
- <div class="ng-template-page-break"></div>
161
+ <div class="p3x-template-page-break"></div>
162
162
  <div>
163
163
  <h2 style="color: #222;">Additional Information</h2>
164
164
  <p style="font-size: 14px; color: #555;">This page provides further details about the invoice, payment methods, and terms. Below is a breakdown of important notes:</p>
@@ -169,7 +169,7 @@ const path = require('path');
169
169
  </ul>
170
170
  <p style="font-size: 14px; color: #555;">If you have any questions, feel free to contact our support team at <a href="mailto:support@patrikx3.com">support@patrikx3.com</a>.</p>
171
171
  </div>
172
- <div class="ng-template-page-break"></div>
172
+ <div class="np3x-template-page-break"></div>
173
173
  <div>
174
174
  <p style="font-size: 14px; color: #555;">Thank you for your business! We hope to work with you again in the future. Stay tuned for updates on our services and offerings by visiting our website or subscribing to our newsletter.</p>
175
175
  </div>
@@ -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.163
610
+ [**P3X-HTML-PDF**](https://corifeus.com/html-pdf) Build v2025.4.165
586
611
 
587
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)
588
613
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "p3x-html-pdf",
3
- "version": "2025.4.163",
3
+ "version": "2025.4.165",
4
4
  "corifeus": {
5
5
  "prefix": "p3x-",
6
6
  "publish": true,
7
7
  "type": "p3x",
8
8
  "code": "Venture",
9
- "nodejs": "v22.13.0",
9
+ "nodejs": "v22.13.1",
10
10
  "opencollective": false,
11
11
  "reponame": "html-pdf",
12
12
  "build": true
package/src/base.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <base href="${base}">
6
6
  <style type="text/css">${css}</style>
7
7
  <style type="text/css">
8
- .ng-template-page-break {
8
+ .p3x-template-page-break {
9
9
  height: 0px;
10
10
  border-top-style: none;
11
11
  page-break-after: always;
package/test/test.js CHANGED
@@ -104,7 +104,7 @@ const fs = require('fs');
104
104
  </tr>
105
105
  </table>
106
106
  </div>
107
- <div class="ng-template-page-break"></div>
107
+ <div class="p3x-template-page-break"></div>
108
108
  <div>
109
109
  <h2 style="color: #222;">Additional Information</h2>
110
110
  <p style="font-size: 14px; color: #555;">This page provides further details about the invoice, payment methods, and terms. Below is a breakdown of important notes:</p>
@@ -115,7 +115,7 @@ const fs = require('fs');
115
115
  </ul>
116
116
  <p style="font-size: 14px; color: #555;">If you have any questions, feel free to contact our support team at <a href="mailto:support@patrikx3.com">support@patrikx3.com</a>.</p>
117
117
  </div>
118
- <div class="ng-template-page-break"></div>
118
+ <div class="p3x-template-page-break"></div>
119
119
  <div>
120
120
  <p style="font-size: 14px; color: #555;">Thank you for your business! We hope to work with you again in the future. Stay tuned for updates on our services and offerings by visiting our website or subscribing to our newsletter.</p>
121
121
  </div>