p3x-html-pdf 2024.4.116 → 2024.4.118

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 v2024.4.116
9
+ # 📃 Generates PDF from HTML with custom headers and footers with wkhtmltopdf v2024.4.118
10
10
 
11
11
 
12
12
 
@@ -20,7 +20,7 @@
20
20
  ### Built on NodeJs version
21
21
 
22
22
  ```txt
23
- v20.12.0
23
+ v20.12.2
24
24
  ```
25
25
 
26
26
 
@@ -62,7 +62,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://
62
62
 
63
63
  ---
64
64
 
65
- [**P3X-HTML-PDF**](https://corifeus.com/html-pdf) Build v2024.4.116
65
+ [**P3X-HTML-PDF**](https://corifeus.com/html-pdf) Build v2024.4.118
66
66
 
67
67
  [![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)
68
68
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "p3x-html-pdf",
3
- "version": "2024.4.116",
3
+ "version": "2024.4.118",
4
4
  "corifeus": {
5
5
  "prefix": "p3x-",
6
6
  "publish": true,
7
7
  "type": "p3x",
8
8
  "code": "Venture",
9
- "nodejs": "v20.12.0",
9
+ "nodejs": "v20.12.2",
10
10
  "opencollective": false,
11
11
  "reponame": "html-pdf",
12
12
  "build": true
package/src/index.js CHANGED
@@ -11,7 +11,11 @@ const os = require('os');
11
11
  const isWin = os.platform() === 'win32';
12
12
  const binPathAddon = isWin ? '' : 'wkhtmltox/';
13
13
 
14
- const binpath = path.resolve(`${__dirname}/../release/${binPathAddon}bin/wkhtmltopdf`);
14
+ let binpath = path.resolve(`${__dirname}/../release/${binPathAddon}bin/wkhtmltopdf`);
15
+ // if we are in arm64, change the binpath
16
+ if (os.arch() === 'arm64') {
17
+ binpath = '/usr/local/bin/wkhtmltopdf-arm64'
18
+ }
15
19
 
16
20
  const generate = async (options) => {
17
21
  const {settings, saveFile, base, debug, title} = options;