p3x-html-pdf 2023.4.141 → 2023.4.143
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 +2 -2
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
# 📃 Generates PDF from HTML with custom headers and footers with wkhtmltopdf v2023.4.
|
|
14
|
+
# 📃 Generates PDF from HTML with custom headers and footers with wkhtmltopdf v2023.4.143
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -67,7 +67,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://
|
|
|
67
67
|
|
|
68
68
|
---
|
|
69
69
|
|
|
70
|
-
[**P3X-HTML-PDF**](https://corifeus.com/html-pdf) Build v2023.4.
|
|
70
|
+
[**P3X-HTML-PDF**](https://corifeus.com/html-pdf) Build v2023.4.143
|
|
71
71
|
|
|
72
72
|
[](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)
|
|
73
73
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -163,10 +163,10 @@ var qr = ${JSON.stringify(mainsSettings.settings.qr)};
|
|
|
163
163
|
marginBottom = '0mm';
|
|
164
164
|
addOn += ` --margin-left 0mm --margin-right 0mm --disable-smart-shrinking`
|
|
165
165
|
} else {
|
|
166
|
-
if (settings.template.marginLeft !== null) {
|
|
166
|
+
if (settings.template.marginLeft !== null && settings.template.marginLeft !== undefined) {
|
|
167
167
|
addOn += ` --margin-left ${settings.template.marginLeft}mm `
|
|
168
168
|
}
|
|
169
|
-
if (settings.template.marginRight != null) {
|
|
169
|
+
if (settings.template.marginRight != null && settings.template.marginLeft !== undefined) {
|
|
170
170
|
addOn += ` --margin-right ${settings.template.marginRight}mm `
|
|
171
171
|
}
|
|
172
172
|
}
|