tcpdf base64 imag code example
Example: how to use base64 image in tcpdf
$img_base64_encoded = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA0gA...';
$img = '<img src="@' . preg_replace('#^data:image/[^;]+;base64,#', '', $img_base64_encoded) . '">';
$pdf->writeHTML($img, true, false, true, false, '');