From 14b1dee166c303e9033843b3335c30f948ef001e Mon Sep 17 00:00:00 2001 From: Florian Schaeffer Date: Thu, 15 Nov 2018 10:54:44 +0100 Subject: [PATCH] fix SpotColor handling in HTML As the spot color array contains the user defined spotcolors provided by AddColor() we need to use the original color name here (as stored in $hcolor) and not the flattened one. Example for usage Your text here --- include/tcpdf_colors.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tcpdf_colors.php b/include/tcpdf_colors.php index 77f1c4c..27fb7af 100644 --- a/include/tcpdf_colors.php +++ b/include/tcpdf_colors.php @@ -358,7 +358,7 @@ class TCPDF_COLORS { $color_code = self::$webcolor[$color]; } else { // spot color - $returncolor = self::getSpotColor($color, $spotc); + $returncolor = self::getSpotColor($hcolor, $spotc); if ($returncolor === false) { $returncolor = $defcol; }