mirror of
https://github.com/tecnickcom/TCPDF.git
synced 2025-03-21 22:49:39 +01:00
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 <span style="color:SPOTCOLOR 15/5;">Your text here</span>
This commit is contained in:
parent
367241059c
commit
14b1dee166
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user