Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $phpWord = new PhpWord();
- $section = $phpWord->addSection();
- PhpOfficePhpWordSharedHtml::addHtml($section, '<table style="width:100%"><tr><td><img src="https://www.gettyimages.ca/gi-resources/images/Homepage/Hero/UK/CMS_Creative_164657191_Kingfisher.jpg" style="width: 20px;"/></td><td>text</td></tr></table>');
- $objWriter = PhpOfficePhpWordIOFactory::createWriter($phpWord, 'Word2007');
- $objWriter->save($docx);
Add Comment
Please, Sign In to add comment