diff --git a/app/Utils/HtmlEngine.php b/app/Utils/HtmlEngine.php
index cc64be253402..0accbcac6f17 100644
--- a/app/Utils/HtmlEngine.php
+++ b/app/Utils/HtmlEngine.php
@@ -95,8 +95,8 @@ class HtmlEngine
}
$data = [];
- $data['$global-margin'] = ['value' => 'm-12', 'label' => ''];
- $data['$global-padding'] = ['value' => 'p-12', 'label' => ''];
+ $data['$global-margin'] = ['value' => 'm-8', 'label' => ''];
+ $data['$global-padding'] = ['value' => 'p-8', 'label' => ''];
$data['$tax'] = ['value' => '', 'label' => ctrans('texts.tax')];
$data['$app_url'] = ['value' => $this->generateAppUrl(), 'label' => ''];
$data['$from'] = ['value' => '', 'label' => ctrans('texts.from')];
diff --git a/resources/views/pdf-designs/bold.html b/resources/views/pdf-designs/bold.html
index 66b172cff9b7..522236b12649 100644
--- a/resources/views/pdf-designs/bold.html
+++ b/resources/views/pdf-designs/bold.html
@@ -12,9 +12,16 @@
@@ -36,7 +43,6 @@
-
@@ -60,7 +66,10 @@
diff --git a/resources/views/pdf-designs/business.html b/resources/views/pdf-designs/business.html
index 27b634fd8f00..8ca608c4acae 100644
--- a/resources/views/pdf-designs/business.html
+++ b/resources/views/pdf-designs/business.html
@@ -25,6 +25,14 @@
tbody > tr > td:first-child {
color: #d03801;
}
+
+ /** Required for proper margins on print **/
+ @page {
+ margin-top: 8.5mm;
+ margin-bottom: 8.5mm;
+ }
+
+ /** Custom CSS goes here.. */
@@ -68,7 +76,7 @@
diff --git a/resources/views/pdf-designs/clean.html b/resources/views/pdf-designs/clean.html
index e2ba8da00ae2..82dcc81cb2ff 100644
--- a/resources/views/pdf-designs/clean.html
+++ b/resources/views/pdf-designs/clean.html
@@ -15,6 +15,14 @@
#product-table tbody > tr:nth-child(even) {
background-color: #f7fafc;
}
+
+ /** Required for proper margins on print **/
+ @page {
+ margin-top: 8.5mm;
+ margin-bottom: 8.5mm;
+ }
+
+ /** Custom CSS goes here.. */
@@ -34,7 +42,7 @@
- $entity_label
+ $entity_label
-
+
diff --git a/resources/views/pdf-designs/creative.html b/resources/views/pdf-designs/creative.html
index b2966f0b15e4..e641b0eb2ca7 100644
--- a/resources/views/pdf-designs/creative.html
+++ b/resources/views/pdf-designs/creative.html
@@ -19,6 +19,14 @@
#product-table tbody > tr:nth-child(odd) {
background-color: #f7fafc;
}
+
+ /** Required for proper margins on print **/
+ @page {
+ margin-top: 8.5mm;
+ margin-bottom: 8.5mm;
+ }
+
+ /** Custom CSS goes here.. */
@@ -61,7 +69,7 @@
diff --git a/resources/views/pdf-designs/elegant.html b/resources/views/pdf-designs/elegant.html
index e1af98fcf444..8e83fd5b49da 100644
--- a/resources/views/pdf-designs/elegant.html
+++ b/resources/views/pdf-designs/elegant.html
@@ -11,6 +11,16 @@
+
+
@@ -44,16 +54,19 @@
-
+
-
- $thanks_label
-
-
+
-
-