Can anyone give me an example of replacePlaceholderImage useage but with stream not a path to file?
Can anyone give me an example of replacePlaceholderImage useage but with stream not a path to file?
Hello,
You need to enable the streamMode option, for example:
$docx = new CreateDocxFromTemplate('examples/files/placeholderImage.docx');
$docx->replacePlaceholderImage('LOGO','https://www.phpdocx.com/img/logo_badge.png', array('streamMode' => true));
If you are adding a HTTPS image, please check the documentation available on https://www.phpdocx.com/documentation/cookbook/insert-images-html (From HTTPs section).
Regards.