Skip to content

Commit 8bd6b7d

Browse files
committed
v2.2.4
1 parent 41b5779 commit 8bd6b7d

87 files changed

Lines changed: 1335 additions & 2200 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 5 additions & 0 deletions

include/admin/class-print.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @Author: Amirhossein Hosseinpour <https://amirhp.com>
44
* @Date Created: 2022/10/15 13:44:52
55
* @Last modified by: amirhp-com <its@amirhp.com>
6-
* @Last modified time: 2025/12/27 20:17:58
6+
* @Last modified time: 2025/12/28 14:00:17
77
*/
88

99
namespace peproulitmateinvoice;
@@ -1036,12 +1036,12 @@ public function create_pdf($order_id = 0, $force_download = false, $MODE = "I",
10361036
"fontdata" => $_fontData,
10371037
"default_font" => $this->fn->get_pdf_font(),
10381038
"format" => $get_pdf_size, // A4-L
1039-
"margin_right" => (float) $template_pdf_setting["pdf_margin_right"] + (float) $this->fn->get_margin_right(),
1040-
"margin_left" => (float) $template_pdf_setting["pdf_margin_left"] + (float) $this->fn->get_margin_left(),
1041-
"margin_top" => (float) $template_pdf_setting["pdf_margin_top"] + (float) $this->fn->get_margin_top(),
1042-
"margin_bottom" => (float) $template_pdf_setting["pdf_margin_bottom"] + (float) $this->fn->get_margin_bottom(),
1043-
"margin_header" => (float) $template_pdf_setting["pdf_margin_header"] + (float) $this->fn->get_margin_header(),
1044-
"margin_footer" => (float) $template_pdf_setting["pdf_margin_footer"] + (float) $this->fn->get_margin_footer(),
1039+
"margin_right" => (float) $template_pdf_setting["pdf_margin_right"] + (!$fit_height ? (float) $this->fn->get_margin_right() : 0),
1040+
"margin_left" => (float) $template_pdf_setting["pdf_margin_left"] + (!$fit_height ? (float) $this->fn->get_margin_left() : 0),
1041+
"margin_top" => (float) $template_pdf_setting["pdf_margin_top"] + (!$fit_height ? (float) $this->fn->get_margin_top() : 0),
1042+
"margin_bottom" => (float) $template_pdf_setting["pdf_margin_bottom"]+ (!$fit_height ? (float) $this->fn->get_margin_bottom() : 0),
1043+
"margin_header" => (float) $template_pdf_setting["pdf_margin_header"]+ (!$fit_height ? (float) $this->fn->get_margin_header() : 0),
1044+
"margin_footer" => (float) $template_pdf_setting["pdf_margin_footer"]+ (!$fit_height ? (float) $this->fn->get_margin_footer() : 0),
10451045
"debug" => false,
10461046
"allow_output_buffering" => true,
10471047
"showImageErrors" => false,
-782 KB
Binary file not shown.
-605 KB
Binary file not shown.
-1.67 MB
Binary file not shown.
-5.57 MB
Binary file not shown.
-1.43 MB
Binary file not shown.
-81.6 KB
Binary file not shown.
-617 KB
Binary file not shown.
-618 KB
Binary file not shown.

0 commit comments

Comments
 (0)