Forum


Replies: 1   Views: 3626
Header that uses multiple wordfragments
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 seb  · 23-01-2015 - 09:57

Cool, I think I figured it out. $header = new \Phpdocx\Elements\WordFragment($docx,'defaultHeader'); $header->addWordML($fgmt_bg_image); $header->addWordML($fgmt_text_box); $docx->addHeader(array('defaultHeader'=>$header)); So far so good! Nice job with v4.5 guys. Cheers, Seb