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 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.152
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.152
357
+ [**P3X-HTML-PDF**](https://corifeus.com/html-pdf) Build v2025.4.153
358
358
 
359
359
  [![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)
360
360
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "p3x-html-pdf",
3
- "version": "2025.4.152",
3
+ "version": "2025.4.153",
4
4
  "corifeus": {
5
5
  "prefix": "p3x-",
6
6
  "publish": true,
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://' + __dirname;
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