function hex2dompdf($hex) { if ($hex) { $array = mslib_befe::hex2rgb($hex); $array = mslib_befe::rgb2dompdf($array); return $array; } }