I am using TCPDF's writeHTML method to insert HTML code in the PDF. If I insert an inline image (an image inside a paragraph) tag, it breaks the line. Look at the image below:
As you can see, the text on the right of the image is not on the same level as the text on the left of the image. I need both texts to be aligned. How do I fix this? Here is my PHP code:
$html = '<p>This is a test ';
$html .= '<img src="C:\\path_to_image\\Untitled.png"> ';
$html .= 'This is a test</p>';
$pdf->AddPage();
$pdf->writeHTML($html, true, false, true, false, '');