Why doesn't embedding external images in HTML work ?
$html .= "<img src='http://url.com/image.jpg'/>";
$docx->embedHTML($html);
Using phpdocx-corporate-5.5
Why doesn't embedding external images in HTML work ?
$html .= "<img src='http://url.com/image.jpg'/>";
$docx->embedHTML($html);
Using phpdocx-corporate-5.5
Hello,
We have tested it and the image is added correctly. Maybe you need to set downloadImages as true; we recommend you to read the documentation available on:
https://www.phpdocx.com/documentation/cookbook/insert-images-html
As you are using phpdocx 5.5, the stream mode is not available. This stream mode is only available since phpdocx 7.5 and newer.
Regards.
$docx = new CreateDocx();
$text = 'Testing 123';
$docx->addText($text);
$img_src = "https://chart.googleapis.com/chart?chs=250x100&chd=t:60,40&cht=p3&chl=Hello|World";
$html = "<img src='{$img_src}'/>";
$docx->embedHTML($html);
$docx->createDocx('../chart');
I get Read Error.
https://imgur.com/a/H2P5G9H