Forum


Replies: 1   Views: 3562
Wordfragment embedhtml stopped working
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by oapl  · 27-01-2015 - 13:06

Hi, we were using following code and it worked fine but suddenly it stopped showing images. $wf_img_text = new WordFragment($docx); $wf_img_text->embedHTML('
Figure '.$row['sequence_no'].': '.$legend.'',array('downloadImages'=>true)); //$wf_img[$seq] = new WordFragment($docx); $textBoxOptions1 = array( 'align' => 'left', 'border' => 0, 'width' => $targetWidth, 'textWrap'=>'tight' ); $docx->addTextBox($wf_img_text, $textBoxOptions1); any ideas how can it stop working?

Posted by admin  · 27-01-2015 - 15:35

Hello, If it was working, it should keep working :). We recommend you to check the server logs, the read/write access of the image and embed an image standalone manually using phpdocx. And make sure there's no other external change that do the images fail. Regards.