From 942a5696598b0f6f85ed5ecad01fe1377ede29c7 Mon Sep 17 00:00:00 2001 From: jlouche <61839660+jlouche@users.noreply.github.com> Date: Thu, 25 Apr 2024 11:53:04 +0200 Subject: [PATCH 1/2] Update tcpdf.php Since the version 6.7.4, the "0" is considered like empty string and not displayed --- tcpdf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcpdf.php b/tcpdf.php index 60f93c41..3d93f4d0 100644 --- a/tcpdf.php +++ b/tcpdf.php @@ -16440,7 +16440,7 @@ protected function getHtmlDomArray($html) { ) ); - if(empty($html)) { + if(empty($html) && $html != '0') { return $dom; } // array of CSS styles ( selector => properties). From f8cf2592d82a60f4fdc0120b2de9b0022819ee97 Mon Sep 17 00:00:00 2001 From: jlouche <61839660+jlouche@users.noreply.github.com> Date: Sat, 27 Apr 2024 11:05:34 +0200 Subject: [PATCH 2/2] Update tcpdf.php Co-authored-by: William Desportes --- tcpdf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcpdf.php b/tcpdf.php index 3d93f4d0..45b677b7 100644 --- a/tcpdf.php +++ b/tcpdf.php @@ -16440,7 +16440,7 @@ protected function getHtmlDomArray($html) { ) ); - if(empty($html) && $html != '0') { + if($html === '' || $html === null) { return $dom; } // array of CSS styles ( selector => properties).