p3x-html-pdf 2025.4.134 → 2025.4.136
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 +6 -6
- package/package.json +1 -1
- package/test/test.js +2 -2
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.136
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -153,8 +153,8 @@ const path = require('path');
|
|
|
153
153
|
- **title**: PDF document title.
|
|
154
154
|
- **saveFile**: Path for saving the PDF.
|
|
155
155
|
- **base** The HTML base href is other then current directory, it can be online as well.
|
|
156
|
-
- **css**: Customize the CSS for serving, by default it is in `src/
|
|
157
|
-
- **jquery**: The latest that works with webkit is jQuery v1.12.4
|
|
156
|
+
- **css**: Customize the CSS for serving, by default it is in `src/html-template.css`
|
|
157
|
+
- **jquery**: The latest that works with webkit is jQuery v1.12.4 is required, you can extend with more functions, the default is in `src/jquery-1.12.4.min.js`
|
|
158
158
|
- **javascriptDelay**: The delay before the PDF is generated as default is 1000 ms.
|
|
159
159
|
|
|
160
160
|
For more options, check the official [wkhtmltopdf usage guide](https://wkhtmltopdf.org/usage/wkhtmltopdf.txt).
|
|
@@ -213,9 +213,9 @@ Currently, the ARM64 binary setup is manual. If there is sufficient demand, an a
|
|
|
213
213
|
## 🖼️ Example Output
|
|
214
214
|
|
|
215
215
|
Check out an example output PDF:
|
|
216
|
-
[Example PDF](https://cdn.corifeus.com/git/html-pdf/assets/p3x-html-pdf-
|
|
216
|
+
[Example PDF](https://cdn.corifeus.com/git/html-pdf/assets/p3x-html-pdf-example.pdf).
|
|
217
217
|
|
|
218
|
-

|
|
219
219
|
|
|
220
220
|
---
|
|
221
221
|
|
|
@@ -374,7 +374,7 @@ All my domains, including [patrikx3.com](https://patrikx3.com), [corifeus.eu](ht
|
|
|
374
374
|
---
|
|
375
375
|
|
|
376
376
|
|
|
377
|
-
[**P3X-HTML-PDF**](https://corifeus.com/html-pdf) Build v2025.4.
|
|
377
|
+
[**P3X-HTML-PDF**](https://corifeus.com/html-pdf) Build v2025.4.136
|
|
378
378
|
|
|
379
379
|
[](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)
|
|
380
380
|
|
package/package.json
CHANGED
package/test/test.js
CHANGED
|
@@ -6,7 +6,7 @@ const fs = require('fs');
|
|
|
6
6
|
(async () => {
|
|
7
7
|
try {
|
|
8
8
|
// Delete the output file if it already exists
|
|
9
|
-
const outputPath = path.resolve(__dirname, '..', 'assets', 'p3x-html-pdf-
|
|
9
|
+
const outputPath = path.resolve(__dirname, '..', 'assets', 'p3x-html-pdf-example.pdf');
|
|
10
10
|
if (fs.existsSync(outputPath)) {
|
|
11
11
|
fs.unlinkSync(outputPath);
|
|
12
12
|
}
|
|
@@ -83,7 +83,7 @@ const fs = require('fs');
|
|
|
83
83
|
<li>Accepted payment methods include credit card, bank transfer, and PayPal.</li>
|
|
84
84
|
<li>Please ensure that all transactions reference the invoice number provided above.</li>
|
|
85
85
|
</ul>
|
|
86
|
-
<p style="font-size: 14px; color: #555;">If you have any questions, feel free to contact our support team at <a href="mailto:support@
|
|
86
|
+
<p style="font-size: 14px; color: #555;">If you have any questions, feel free to contact our support team at <a href="mailto:support@corifeus.com">support@corifeus.com</a>.</p>
|
|
87
87
|
</div>
|
|
88
88
|
<div class="ng-template-page-break"></div>
|
|
89
89
|
<div>
|