From bc539d249dc14fbed32f4a43bc094037ca28010c Mon Sep 17 00:00:00 2001 From: oges-asset067 Date: Mon, 12 Jan 2026 17:13:16 +0530 Subject: [PATCH] Fix padding and margin CSS property handling --- tcpdf.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcpdf.php b/tcpdf.php index 2cbbc4d7..b980af6c 100644 --- a/tcpdf.php +++ b/tcpdf.php @@ -17013,7 +17013,7 @@ protected function getHtmlDomArray($html) { } // check for CSS padding properties if (isset($dom[$key]['style']['padding'])) { - $dom[$key]['padding'] = $this->getCSSPadding($dom[$key]['style']['padding']); + $dom[$key]['padding'] = $this->getCSSPadding($dom[$key]['style']['padding'][0]); } else { $dom[$key]['padding'] = $this->cell_padding; } @@ -17024,7 +17024,7 @@ protected function getHtmlDomArray($html) { } // check for CSS margin properties if (isset($dom[$key]['style']['margin'])) { - $dom[$key]['margin'] = $this->getCSSMargin($dom[$key]['style']['margin']); + $dom[$key]['margin'] = $this->getCSSMargin($dom[$key]['style']['margin'][0]); } else { $dom[$key]['margin'] = $this->cell_margin; }