I have a large chunk of HTML code which I'm inserting it via embedHTML
$docx->embedHTML($html);
But I want to insert page breaks before all my <h2> tags. I tried with <br/> but it didn't work.
I can't use $docx->addBreak(array('type' => 'page')); because I'm inserting a large chunk of pre-processed HTML code in which I have the page breaks.
Is there any way to get this done in HTML ?
Im using phpdocx 5.5 Advanced.
Thanks