p3x-html-pdf 2025.4.152 → 2025.4.153
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 +2 -2
- package/package.json +1 -1
- package/src/index.js +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.153
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -354,7 +354,7 @@ All my domains, including [patrikx3.com](https://patrikx3.com), [corifeus.eu](ht
|
|
|
354
354
|
---
|
|
355
355
|
|
|
356
356
|
|
|
357
|
-
[**P3X-HTML-PDF**](https://corifeus.com/html-pdf) Build v2025.4.
|
|
357
|
+
[**P3X-HTML-PDF**](https://corifeus.com/html-pdf) Build v2025.4.153
|
|
358
358
|
|
|
359
359
|
[](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)
|
|
360
360
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -45,7 +45,7 @@ const generate = async (options) => {
|
|
|
45
45
|
const baseHtml = (await fs.readFile(`${__dirname}/base.html`)).toString();
|
|
46
46
|
const baseHtmlFooterHeader = (await fs.readFile(`${__dirname}/header-footer.html`)).toString();
|
|
47
47
|
|
|
48
|
-
options.base = options.base || 'file://' +
|
|
48
|
+
options.base = options.base || 'file://' + process.cwd();
|
|
49
49
|
options.css = options.css || (await fs.readFile(`${__dirname}/html-template.css`)).toString();
|
|
50
50
|
options.jquery = options.jquery || (await fs.readFile(`${__dirname}/jquery-1.12.4.min.js`)).toString();
|
|
51
51
|
|