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

@@ -43,7 +51,10 @@
-
+
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 -

-
+ - - diff --git a/resources/views/pdf-designs/hipster.html b/resources/views/pdf-designs/hipster.html index 94f2d7e8b536..f77115e9194d 100644 --- a/resources/views/pdf-designs/hipster.html +++ b/resources/views/pdf-designs/hipster.html @@ -11,6 +11,16 @@ + +
@@ -49,7 +59,10 @@ >
-
+
diff --git a/resources/views/pdf-designs/modern.html b/resources/views/pdf-designs/modern.html index 159d9f41d4dc..089c8f93c3d2 100644 --- a/resources/views/pdf-designs/modern.html +++ b/resources/views/pdf-designs/modern.html @@ -30,8 +30,8 @@
-
-

+

+

$your_entity_label

@@ -45,11 +45,14 @@
-
+
-
+
-
+
- -
diff --git a/resources/views/pdf-designs/plain.html b/resources/views/pdf-designs/plain.html index 1d7085d61394..45a3d4135ac1 100644 --- a/resources/views/pdf-designs/plain.html +++ b/resources/views/pdf-designs/plain.html @@ -11,6 +11,16 @@ + +
@@ -35,7 +45,7 @@
-

+

$your_entity_label

@@ -43,7 +53,10 @@
-
+
diff --git a/resources/views/pdf-designs/playful.html b/resources/views/pdf-designs/playful.html index c748c3c3ff60..a718a0be1730 100644 --- a/resources/views/pdf-designs/playful.html +++ b/resources/views/pdf-designs/playful.html @@ -20,6 +20,14 @@ color: #9b2c2c; font-weight: bold; } + + /** Required for proper margins on print **/ + @page { + margin-top: 8.5mm; + margin-bottom: 8.5mm; + } + + /** Custom CSS goes here.. */ @@ -40,7 +48,7 @@
-

+

$your_entity_label

@@ -64,7 +72,10 @@
-
+