hi
i tried below code but it not working
$wordStyles = array('<h1>' => 'Heading1' , '<h2>' => 'Heading2'); $html = ' <h1>Heading 1</h1> <h2>Heading 2</h2> '; $docx->embedHTML($html, array('wordStyles' => $wordStyles));
i am generating docx from html and html is dynamic there is no spacific format for docx. how can i create template and define style for heading