Hello, I've recently purchased the Premium package and I'm working with templates.
I've been trying center an image using replaceVariableByWordFragment, is that possible?
Also I've havn't been able to get replacePlaceholderImage working.
These are the steps I've been following:
- Right Click on image and select 'Add Alt Text'
- Add the value $IMAGE$ to the Alt Text Title
- Then I run this code $docx->replacePlaceholderImage('IMAGE',$to_folder_path.'/'.$file_name, ['target'=>'document']);
Any help would be appreciated.
$docx->replacePlaceholderImage('IMAGE',$to_folder_path.'/'.$file_name, ['target' => 'document']);